Interface Timer


  • public interface Timer
    Schedule a callback to be called via a timer thread. A Timer is created via TimerFactory.
    Author:
    mrk
    • Method Detail

      • scheduleAfterDelay

        void scheduleAfterDelay​(Timer.TimerNode timerNode,
                                double delay)
        Scheduler a call back after a specified delay.
        Parameters:
        timerNode - the TimerNode allocated via a call to TimerFactory.createNode
        delay - the delay in seconds
      • schedulePeriodic

        void schedulePeriodic​(Timer.TimerNode timerNode,
                              double delay,
                              double period)
        Schedule a periodic call back.
        Parameters:
        timerNode - the TimerNode allocated via a call to createNode
        delay - the delay in seconds to the first callback
        period - the period in seconds
      • stop

        void stop()
        Stop the timer.