Interface CentralTimeProvider

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      OptionalLong getDiffMillis()
      Returns the number of milliseconds that it is need to add to the server local time to match central time.
      Returns empty optional if is not synchronized with central time.
      default String getName()
      Returns the short name of the time provider instance.
      default OptionalLong nowMillis()
      Returns local time in milliseconds corrected according with the computed time difference with central time.
      Returns empty optional if is not synchronized with central time.
    • Method Detail

      • getDiffMillis

        @NotNull
        OptionalLong getDiffMillis()
        Returns the number of milliseconds that it is need to add to the server local time to match central time.
        Returns empty optional if is not synchronized with central time.
      • nowMillis

        @NotNull
        default OptionalLong nowMillis()
        Returns local time in milliseconds corrected according with the computed time difference with central time.
        Returns empty optional if is not synchronized with central time.
      • getName

        @NotNull
        default String getName()
        Returns the short name of the time provider instance.