|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--java.lang.Thread
|
+--policyMgmt.CalendarTimer
This is an EventGenerator for TimeEvents that are sent on specific dates.
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY,
MIN_PRIORITY,
NORM_PRIORITY |
| Constructor Summary | |
CalendarTimer(Policy policy)
Constructs a CalendarTimer. |
|
CalendarTimer(Policy policy,
java.util.Date when)
Constructs a CalendarTimer and adds a given date to trigger. |
|
| Method Summary | |
void |
addDate(java.util.Date when)
Add a trigger Date. |
void |
clearDate(java.util.Date when)
Remove a Date. |
void |
expire(java.util.Date now)
Remove passed Date. |
java.util.Date |
getFirst()
Retrieve the next upcoming scheduled Date |
java.util.Date |
getNext(java.util.Date when)
Retrieve the next scheduled Date after a given reference Date. |
boolean |
isEmpty()
Check whether the queue of scheduled upcoming Events is empty. |
void |
run()
The main loop of the CalendarTimer Thread. |
| Methods inherited from class java.lang.Thread |
activeCount,
checkAccess,
countStackFrames,
currentThread,
destroy,
dumpStack,
enumerate,
getContextClassLoader,
getName,
getPriority,
getThreadGroup,
interrupt,
interrupted,
isAlive,
isDaemon,
isInterrupted,
join,
join,
join,
resume,
setContextClassLoader,
setDaemon,
setName,
setPriority,
sleep,
sleep,
start,
stop,
stop,
suspend,
toString,
yield |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public CalendarTimer(Policy policy)
policy - the Policy to receive the Events of this CalendarTimer
public CalendarTimer(Policy policy,
java.util.Date when)
policy - the Policy to receive the Events of this CalendarTimerwhen - the Date to trigger| Method Detail |
public void addDate(java.util.Date when)
when - the new Datepublic void clearDate(java.util.Date when)
when - the new Datepublic void expire(java.util.Date now)
now - the reference Date (usually the current Date)public boolean isEmpty()
public java.util.Date getFirst()
public java.util.Date getNext(java.util.Date when)
throws java.util.NoSuchElementException
when - the reference Datepublic void run()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||