Class HashedTimingWheel.MyTask
java.lang.Object
org.jgroups.util.HashedTimingWheel.MyTask
- Enclosing class:
HashedTimingWheel
-
Nested Class Summary
Nested classes/interfaces inherited from interface Future
Future.State -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Future
exceptionNow, resultNow, state
-
Field Details
-
task
-
cancelled
protected volatile boolean cancelled -
done
protected volatile boolean done -
next
-
round
protected int round
-
-
Constructor Details
-
MyTask
-
-
Method Details
-
getRound
public int getRound() -
getAndDecrementRound
public int getAndDecrementRound() -
setRound
public void setRound(int round) -
cancel
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceFuture
-
isDone
-
get
- Specified by:
getin interfaceFuture- Throws:
InterruptedExceptionExecutionException
-
get
public Object get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
getin interfaceFuture- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
run
-
toString
-