Package com.swiftmq.tools.timer
Class TimerRegistry
java.lang.Object
com.swiftmq.tools.timer.TimerRegistry
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
Modifier and TypeMethodDescriptionvoid
addInstantTimerListener
(long delay, TimerListener l) void
addTimerListener
(byte timePoint, TimerListener l) void
addTimerListener
(long delay, TimerListener l) void
void
removeTimerListener
(byte timePoint, TimerListener l) void
removeTimerListener
(long delay, TimerListener l) static TimerRegistry
-
Method Details
-
Singleton
-
addTimerListener
-
addInstantTimerListener
-
addTimerListener
-
removeTimerListener
-
removeTimerListener
-
removeAllTimers
public void removeAllTimers()
-