public class ImmediateTimeout extends AbstractTimeout
deadline, task, timerST_CANCELLED, ST_EXPIRED, ST_INIT| 构造器和说明 |
|---|
ImmediateTimeout(Timer timer,
TimerTask task,
long deadline) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
cancel()
Attempts to cancel the
TimerTask associated with this handle. |
void |
executeTask() |
compareAndSetState, isCancelled, isExpired, run, state, task, timerpublic boolean cancel()
TimeoutTimerTask associated with this handle.
If the task has been executed or cancelled already, it will return with
no side effect.public void executeTask()
executeTask 在类中 AbstractTimeoutCopyright © 2022. All rights reserved.