|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectTimerFactory
public class TimerFactory
A TimerFactory is a factory for RDTTimer objects. It provides a single thread for executing the tasks for its timers.
| Nested Class Summary | |
|---|---|
class |
TimerFactory.Timer
A TimerFactory.Timer times tasks that need to be performed at a later time. |
| Constructor Summary | |
|---|---|
TimerFactory(java.lang.String nm)
TimerFactory(nm) returns an empty TimerFactory with name nm. |
|
| Method Summary | |
|---|---|
TimerFactory.Timer |
createTimer(int del,
TimingTask tsk)
tq.createTimer(del, tsk) returns a Timer for use in tq that performs tsk with delay del after invoking start(). |
java.lang.String |
toString()
tq.toString() returns the name of tq. |
void |
waitUntilStopped()
tq.waitUntilStopped() blocks until all timers are stopped. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TimerFactory(java.lang.String nm)
| Method Detail |
|---|
public TimerFactory.Timer createTimer(int del,
TimingTask tsk)
public void waitUntilStopped()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||