Package com.swiftmq.tools.timer
Class TimerRegistry
- java.lang.Object
-
- com.swiftmq.tools.timer.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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addInstantTimerListener(long delay, TimerListener l)
void
addTimerListener(byte timePoint, TimerListener l)
void
addTimerListener(long delay, TimerListener l)
void
removeAllTimers()
void
removeTimerListener(byte timePoint, TimerListener l)
void
removeTimerListener(long delay, TimerListener l)
static TimerRegistry
Singleton()
-
-
-
Method Detail
-
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()
-
-