Class TimerRegistry

java.lang.Object
com.swiftmq.tools.timer.TimerRegistry

public class TimerRegistry extends 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 Details

    • Singleton

      public static TimerRegistry Singleton()
    • 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()