|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.planeth.common.timing.TimerManager
TimerManager handles and stores timers.
That makes it possible to interact with all used timers together
without knowing their purpose.
For example pausing the whole application.
Timer,
WaitTimer| Method Summary | |
static TimerManager |
getInstance(java.lang.Object obj)
Returns a TimerManager instance for the passed Object |
Timer |
getTimer(java.lang.String name)
Returns the Timer with the passed name |
WaitTimer |
getWaitTimer(java.lang.String name)
Returns the WaitTimer with the passed name |
static void |
pauseAllTimersGlobal(boolean pauseState)
Pauses all Timers of all TimerManager instances |
void |
putTimer(java.lang.String name,
Timer timer)
Puts a Timer to the TimerManager |
void |
putWaitTimer(java.lang.String name,
WaitTimer waitTimer)
Puts a WaitTimer to the TimerManager |
void |
removeAllTimers()
Removes all Timers of the current TimerManager instance |
static void |
removeInstance(java.lang.Object obj)
Removes the TimerManager instance for the passed Object, if it's existing |
void |
removeTimer(java.lang.String name)
Removes and terminates the Timer with the passed name |
void |
removeWaitTimer(java.lang.String name)
Removes and terminates the WaitTimer with the passed name |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static TimerManager getInstance(java.lang.Object obj)
obj - object, on which the created TimerManager is bound
public static void removeInstance(java.lang.Object obj)
obj - object, on which the created TimerManager is boundpublic static void pauseAllTimersGlobal(boolean pauseState)
pauseState - true = pause, false = unpause
public void putTimer(java.lang.String name,
Timer timer)
name - the name of the timertimer - the Timer object to be storedpublic Timer getTimer(java.lang.String name)
name - the name of the timer
public void removeTimer(java.lang.String name)
name - the name of the timer
public void putWaitTimer(java.lang.String name,
WaitTimer waitTimer)
name - the name of the timerwaitTimer - the WaitTimer object to be storedpublic WaitTimer getWaitTimer(java.lang.String name)
name - the name of the timer
public void removeWaitTimer(java.lang.String name)
name - the name of the timerpublic void removeAllTimers()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||