|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.concurrent.locks.AbstractOwnableSynchronizer java.util.concurrent.locks.AbstractQueuedSynchronizer org.jgroups.blocks.executor.ExecutionService.DistributedFuture.Sync<V>
protected static final class ExecutionService.DistributedFuture.Sync<V>
Synchronization control for FutureTask. Note that this must be a non-static inner class in order to invoke the protected done method. For clarity, all inner class support methods are same as outer, prefixed with "inner". Uses AQS sync state to represent run status
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.util.concurrent.locks.AbstractQueuedSynchronizer |
---|
java.util.concurrent.locks.AbstractQueuedSynchronizer.ConditionObject |
Field Summary | |
---|---|
protected java.util.concurrent.Callable<V> |
callable
The underlying callable |
protected static int |
CANCELLED
State value representing that task was cancelled |
protected java.lang.Throwable |
exception
The exception to throw from get() |
protected ExecutionService.DistributedFuture<V> |
future
The containing future |
protected static int |
RAN
State value representing that task ran |
protected V |
result
The result to return from get() |
protected java.lang.Thread |
runner
The thread running task. |
protected static int |
RUNNING
State value representing that task is running |
Constructor Summary | |
---|---|
ExecutionService.DistributedFuture.Sync(ExecutionService.DistributedFuture<V> future,
java.util.concurrent.Callable<V> callable)
|
Method Summary | |
---|---|
protected int |
tryAcquireShared(int ignore)
Implements AQS base acquire to succeed if ran or cancelled |
protected boolean |
tryReleaseShared(int ignore)
Implements AQS base release to always signal after setting final done status by nulling runner thread. |
Methods inherited from class java.util.concurrent.locks.AbstractQueuedSynchronizer |
---|
acquire, acquireInterruptibly, acquireShared, acquireSharedInterruptibly, compareAndSetState, getExclusiveQueuedThreads, getFirstQueuedThread, getQueuedThreads, getQueueLength, getSharedQueuedThreads, getState, getWaitingThreads, getWaitQueueLength, hasContended, hasQueuedThreads, hasWaiters, isHeldExclusively, isQueued, owns, release, releaseShared, setState, toString, tryAcquire, tryAcquireNanos, tryAcquireSharedNanos, tryRelease |
Methods inherited from class java.util.concurrent.locks.AbstractOwnableSynchronizer |
---|
getExclusiveOwnerThread, setExclusiveOwnerThread |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final int RUNNING
protected static final int RAN
protected static final int CANCELLED
protected final ExecutionService.DistributedFuture<V> future
protected final java.util.concurrent.Callable<V> callable
protected V result
protected java.lang.Throwable exception
protected transient volatile java.lang.Thread runner
Constructor Detail |
---|
public ExecutionService.DistributedFuture.Sync(ExecutionService.DistributedFuture<V> future, java.util.concurrent.Callable<V> callable)
Method Detail |
---|
protected int tryAcquireShared(int ignore)
tryAcquireShared
in class java.util.concurrent.locks.AbstractQueuedSynchronizer
protected boolean tryReleaseShared(int ignore)
tryReleaseShared
in class java.util.concurrent.locks.AbstractQueuedSynchronizer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |