Home » geronimo-2.2-source-release » org.apache.geronimo.concurrent.harmony » [javadoc | source]
org.apache.geronimo.concurrent.harmony
final class: FutureTask.Sync [javadoc | source]
java.lang.Object
   java.util.concurrent.locks.AbstractOwnableSynchronizer
      java.util.concurrent.locks.AbstractQueuedSynchronizer
         org.apache.geronimo.concurrent.harmony.FutureTask$Sync

All Implemented Interfaces:
    Serializable

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
Fields inherited from java.util.concurrent.locks.AbstractQueuedSynchronizer:
spinForTimeoutThreshold
Constructor:
 Sync(Callable<V> callable) 
Method from org.apache.geronimo.concurrent.harmony.FutureTask$Sync Summary:
innerCancel,   innerGet,   innerGet,   innerIsCancelled,   innerIsDone,   innerIsSkipped,   innerRun,   innerRunAndReset,   innerSet,   innerSetException,   innerSetSkipped,   tryAcquireShared,   tryReleaseShared
Methods from java.util.concurrent.locks.AbstractQueuedSynchronizer:
access$000,   acquire,   acquireInterruptibly,   acquireQueued,   acquireShared,   acquireSharedInterruptibly,   apparentlyFirstQueuedIsExclusive,   compareAndSetState,   fullIsFirst,   fullyRelease,   getExclusiveQueuedThreads,   getFirstQueuedThread,   getQueueLength,   getQueuedThreads,   getSharedQueuedThreads,   getState,   getWaitQueueLength,   getWaitingThreads,   hasContended,   hasQueuedThreads,   hasWaiters,   isFirst,   isHeldExclusively,   isOnSyncQueue,   isQueued,   owns,   release,   releaseShared,   setState,   toString,   transferAfterCancelledWait,   transferForSignal,   tryAcquire,   tryAcquireNanos,   tryAcquireShared,   tryAcquireSharedNanos,   tryRelease,   tryReleaseShared
Methods from java.util.concurrent.locks.AbstractOwnableSynchronizer:
getExclusiveOwnerThread,   setExclusiveOwnerThread
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.geronimo.concurrent.harmony.FutureTask$Sync Detail:
 boolean innerCancel(boolean mayInterruptIfRunning) 
 V innerGet() throws InterruptedException, ExecutionException 
 V innerGet(long nanosTimeout) throws InterruptedException, ExecutionException, TimeoutException 
 boolean innerIsCancelled() 
 boolean innerIsDone() 
 boolean innerIsSkipped() 
  void innerRun() 
 boolean innerRunAndReset() 
  void innerSet(V v) 
  void innerSetException(Throwable t) 
 boolean innerSetSkipped() 
 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.