Package 

Interface TimeProvider


  • 
    public interface TimeProvider
    
                        

    Interface to provide the current time in both device and server time references.

    • Method Summary

      Modifier and Type Method Description
      abstract Long getDeviceTimestamp() Returns the current device timestamp in milliseconds.
      abstract Long getServerTimestamp() Returns the current server timestamp in milliseconds.
      abstract Long getServerOffsetNanos() Returns the offset between the device and server time references in nanoseconds.
      abstract Long getServerOffsetMillis() Returns the offset between the device and server time references in milliseconds.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getServerOffsetNanos

         abstract Long getServerOffsetNanos()

        Returns the offset between the device and server time references in nanoseconds.

      • getServerOffsetMillis

         abstract Long getServerOffsetMillis()

        Returns the offset between the device and server time references in milliseconds.