Class TimerRegistry


  • public class TimerRegistry
    extends java.lang.Object
    The TimerRegistry is a Singleton for managing Timers. The application simply uses the add/removeTimerListeners with a delay time as the key. Internal, the TimerRegistry has for all delay times/time points a specific Timer where the add/remove action take place. Is there is no timer for that requested delay time/time point on addTimerListener then this class will create one.
    Version:
    2.0
    Author:
    IIT GmbH
    • Method Detail

      • addTimerListener

        public void addTimerListener​(long delay,
                                     TimerListener l)
      • addInstantTimerListener

        public void addInstantTimerListener​(long delay,
                                            TimerListener l)
      • addTimerListener

        public void addTimerListener​(byte timePoint,
                                     TimerListener l)
      • removeTimerListener

        public void removeTimerListener​(long delay,
                                        TimerListener l)
      • removeTimerListener

        public void removeTimerListener​(byte timePoint,
                                        TimerListener l)
      • removeAllTimers

        public void removeAllTimers()