| Modifier and Type | Field and Description |
|---|---|
protected boolean |
cancelled |
protected boolean |
done |
protected HashedTimingWheel.MyTask |
next |
protected int |
round |
protected Runnable |
task |
| Constructor and Description |
|---|
HashedTimingWheel.MyTask(Runnable task,
int round) |
protected final Runnable task
protected volatile boolean cancelled
protected volatile boolean done
protected HashedTimingWheel.MyTask next
protected int round
public HashedTimingWheel.MyTask(Runnable task, int round)
public int getRound()
public int getAndDecrementRound()
public void setRound(int round)
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled in interface Futurepublic Object get() throws InterruptedException, ExecutionException
get in interface FutureInterruptedExceptionExecutionExceptionpublic Object get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface FutureInterruptedExceptionExecutionExceptionTimeoutExceptionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.