|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mortbay.thread.Timeout.Task
public static class 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.
| Field Summary | |
|---|---|
(package private) long |
_delay
|
(package private) boolean |
_expired
|
(package private) Timeout.Task |
_next
|
(package private) Timeout.Task |
_prev
|
(package private) Timeout |
_timeout
|
(package private) long |
_timestamp
|
| Constructor Summary | |
|---|---|
Timeout.Task()
|
|
| Method Summary | |
|---|---|
void |
cancel()
Cancel the task. |
private void |
doExpire()
|
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 |
| Field Detail |
|---|
Timeout.Task _next
Timeout.Task _prev
Timeout _timeout
long _delay
long _timestamp
boolean _expired
| 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()
private void doExpire()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||