|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jetty.util.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.
| Constructor Summary | |
|---|---|
protected |
Timeout.Task()
|
| Method Summary | |
|---|---|
void |
cancel()
Cancel the task. |
protected void |
expire()
Expire task. |
void |
expired()
Expire task. |
long |
getAge()
|
long |
getTimestamp()
|
boolean |
isExpired()
|
boolean |
isScheduled()
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Timeout.Task()
| Method Detail |
|---|
public long getTimestamp()
public long getAge()
public void schedule(Timeout timer)
timer -
public void schedule(Timeout timer,
long delay)
timer - public void reschedule()
public void cancel()
public boolean isExpired()
public boolean isScheduled()
protected void expire()
isExpired() state to true.
For an unsynchronized callback.public void expired()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||