protected static class HashedTimingWheel.MyTask
extends java.lang.Object
implements java.util.concurrent.Future, java.lang.Runnable
| 限定符和类型 | 字段和说明 |
|---|---|
protected boolean |
cancelled |
protected boolean |
done |
protected HashedTimingWheel.MyTask |
next |
protected int |
round |
protected java.lang.Runnable |
task |
| 构造器和说明 |
|---|
HashedTimingWheel.MyTask(java.lang.Runnable task,
int round) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
java.lang.Object |
get() |
java.lang.Object |
get(long timeout,
java.util.concurrent.TimeUnit unit) |
int |
getAndDecrementRound() |
int |
getRound() |
boolean |
isCancelled() |
boolean |
isDone() |
void |
run() |
void |
setRound(int round) |
java.lang.String |
toString() |
protected final java.lang.Runnable task
protected volatile boolean cancelled
protected volatile boolean done
protected HashedTimingWheel.MyTask next
protected int round
public HashedTimingWheel.MyTask(java.lang.Runnable task,
int round)
public int getRound()
public int getAndDecrementRound()
public void setRound(int round)
public boolean cancel(boolean mayInterruptIfRunning)
cancel 在接口中 java.util.concurrent.Futurepublic boolean isCancelled()
isCancelled 在接口中 java.util.concurrent.Futurepublic boolean isDone()
isDone 在接口中 java.util.concurrent.Futurepublic java.lang.Object get()
throws java.lang.InterruptedException,
java.util.concurrent.ExecutionException
get 在接口中 java.util.concurrent.Futurejava.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionpublic java.lang.Object get(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException,
java.util.concurrent.ExecutionException,
java.util.concurrent.TimeoutException
get 在接口中 java.util.concurrent.Futurejava.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionjava.util.concurrent.TimeoutExceptionpublic void run()
run 在接口中 java.lang.Runnablepublic java.lang.String toString()
toString 在类中 java.lang.Object