|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
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.
| 构造方法摘要 | |
|---|---|
protected |
Timeout.Task()
|
| 方法摘要 | |
|---|---|
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. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
protected Timeout.Task()
| 方法详细信息 |
|---|
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()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||