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.Future
public boolean isCancelled()
isCancelled
在接口中 java.util.concurrent.Future
public boolean isDone()
isDone
在接口中 java.util.concurrent.Future
public java.lang.Object get() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
get
在接口中 java.util.concurrent.Future
java.lang.InterruptedException
java.util.concurrent.ExecutionException
public 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.Future
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
public void run()
run
在接口中 java.lang.Runnable
public java.lang.String toString()
toString
在类中 java.lang.Object