|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.cornerstone.blocks.scheduler.TimeScheduledEntry
Class use internally to package to hold scheduled time entries.
Constructor Summary | |
TimeScheduledEntry(java.lang.String name,
TimeTrigger trigger,
Target target)
|
Method Summary | |
int |
compareTo(java.lang.Object object)
Implement comparable interface used to help sort triggers. |
java.lang.String |
getName()
Return name of trigger. |
long |
getNextTime()
Retrieve cached time when trigger should run next. |
Target |
getTarget()
|
TimeTrigger |
getTimeTrigger()
|
void |
invalidate()
Invalidate trigger |
boolean |
isValid()
Determine if this entry is valid |
void |
setNextTime(long time)
Set cached time in milliseconds when trigger should run |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TimeScheduledEntry(java.lang.String name, TimeTrigger trigger, Target target)
Method Detail |
public java.lang.String getName()
public Target getTarget()
public TimeTrigger getTimeTrigger()
public boolean isValid()
public void invalidate()
public long getNextTime()
public void setNextTime(long time)
time
- the timepublic int compareTo(java.lang.Object object)
compareTo
in interface java.lang.Comparable
object
- the other trigger
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |