|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mortbay.thread.Timeout.Task
Task. The base class for scheduled timeouts. This class should be extended to implement the expire() method, which is called if the timeout expires.
Constructor Summary | |
Timeout.Task()
|
Method Summary | |
void |
cancel()
Cancel the task. |
void |
expire()
Expire task. |
boolean |
isExpired()
|
void |
reschedule()
Reschedule the task on the current timeout. |
void |
schedule(Timeout timer)
Schedule the task on the given timeout. |
void |
schedule(Timeout timer,
long delay)
Schedule the task on the given timeout. |
void |
setNext(Timeout.Task task)
|
void |
unlink()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Timeout.Task()
Method Detail |
public void unlink()
public void setNext(Timeout.Task task)
public void schedule(Timeout timer)
timer
- public void schedule(Timeout timer, long delay)
timer
- public void reschedule()
public void cancel()
public boolean isExpired()
public void expire()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |