Package io.token.util

Class SystemTimeClock

  • All Implemented Interfaces:
    Clock

    public class SystemTimeClock
    extends java.lang.Object
    implements Clock
    • Constructor Summary

      Constructors 
      Constructor Description
      SystemTimeClock()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getTime()
      Gets the current time in Epoch milliseconds.
      • Methods inherited from class java.lang.Object

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

      • SystemTimeClock

        public SystemTimeClock()
    • Method Detail

      • getTime

        public long getTime()
        Description copied from interface: Clock
        Gets the current time in Epoch milliseconds.
        Specified by:
        getTime in interface Clock
        Returns:
        current time