public class JavaTimeout extends AbstractTimeout
deadline, task, timerST_CANCELLED, ST_EXPIRED, ST_INIT| 限定符 | 构造器和说明 |
|---|---|
protected |
JavaTimeout(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 void executeTask()
executeTask 在类中 AbstractTimeoutCopyright © 2022. All rights reserved.