Package com.swiftmq.tools.timer
Class TimerRegistry
- java.lang.Object
-
- com.swiftmq.tools.timer.TimerRegistry
-
public class TimerRegistry extends java.lang.ObjectThe 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 voidaddInstantTimerListener(long delay, TimerListener l)voidaddTimerListener(byte timePoint, TimerListener l)voidaddTimerListener(long delay, TimerListener l)voidremoveAllTimers()voidremoveTimerListener(byte timePoint, TimerListener l)voidremoveTimerListener(long delay, TimerListener l)static TimerRegistrySingleton()
-
-
-
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()
-
-