Class ClockFactoryImpl

    • Constructor Detail

      • ClockFactoryImpl

        public ClockFactoryImpl()
    • Method Detail

      • currentTimeSeconds

        protected long currentTimeSeconds()
        Obtains the current time in seconds since Epoch.
        Returns:
        Current time in seconds since Epoch.
      • createClock

        public <T> Clock<T> createClock​(java.util.function.Function<java.lang.Long,​T> translator)
        Description copied from interface: ClockFactory
        Creates a Clock.
        Specified by:
        createClock in interface ClockFactory
        Parameters:
        translator - Translate the seconds since Epoch to Clock time.
        Returns:
        Clock.
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
        Specified by:
        run in class java.util.TimerTask