|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.engine.TWGQueueTimer
TWGTimerQueue is a class that allows sub-classed objects to be enqueued based on the time of day. Items on the queue will be "run" when the server time of day has passed the time of day marked in the enqueued element. The sub-class must implement a "process" method.
Field Summary | |
---|---|
protected java.lang.Thread |
myThread
|
Method Summary | |
---|---|
static void |
enqueue(TWGQueueElement element,
java.util.Date tod)
This method adds a TWGQueueElement to TWGQueueTimer's queue. |
static void |
enqueue(TWGQueueElement element,
long tod,
boolean realTime)
This method adds a TWGQueueElement to TWGQueueTimer's queue. |
static boolean |
remove(TWGQueueElement element)
This method removes a TWGQueueElement from the TWGQueueTimer's queue. |
void |
run()
Our thread's entry point. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.Thread myThread
Method Detail |
public static void enqueue(TWGQueueElement element, long tod, boolean realTime)
element
- TWGQueueElement object to be added to the queue.tod
- The time/date of day when the element's "process" method is
to be called.realTime
- TRUE : specified time is actual time/date in mSec
the element is to be processed. FALSE: the specified
time is the number of mSec from the current time
the element is to be processed.public static void enqueue(TWGQueueElement element, java.util.Date tod)
element
- TWGQueueElement object to be added to the queue.tod
- Date object representing absolute time/date the element
is to be popped.public void run()
run
in interface java.lang.Runnable
public static boolean remove(TWGQueueElement element)
element
- TWGQueueElement object to be removed.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |