| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private class | |
| private abstract class |
| Modifier and Type | Field and Description |
|---|---|
| private CombinedFuture |
| Access | Constructor and Description |
|---|---|
| pack-priv | CombinedFuture(ImmutableCollection<? extends ListenableFuture<?>> futures, boolean allMustSucceed, Executor listenerExecutor, AsyncCallable<V> callable)
|
| pack-priv | CombinedFuture(ImmutableCollection<? extends ListenableFuture<?>> futures, boolean allMustSucceed, Executor listenerExecutor, Callable<V> callable)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | collectOneValue(int index, Object returnValue)
Implements abstract com. allMustSucceed is true, called as each future completes; otherwise, if collectsValues is true, called for each future when all futures complete.
|
| pack-priv void | handleAllCompleted()
Implements abstract com. |
| protected void | interruptTask()
Overrides com. |
| pack-priv void | releaseResources(AggregateFuture.
Overrides com. handleAllCompleted() has been called).
|
| task | back to summary |
|---|---|
| private CombinedFuture<V>. | |
| CombinedFuture | back to summary |
|---|---|
| pack-priv CombinedFuture(ImmutableCollection<? extends ListenableFuture<?>> futures, boolean allMustSucceed, Executor listenerExecutor, AsyncCallable<V> callable) | |
| CombinedFuture | back to summary |
|---|---|
| pack-priv CombinedFuture(ImmutableCollection<? extends ListenableFuture<?>> futures, boolean allMustSucceed, Executor listenerExecutor, Callable<V> callable) | |
| collectOneValue | back to summary |
|---|---|
| pack-priv void collectOneValue(int index, Object returnValue) Implements abstract com. Doc from com. If
| |
| handleAllCompleted | back to summary |
|---|---|
| pack-priv void handleAllCompleted() Implements abstract com.
| |
| interruptTask | back to summary |
|---|---|
| protected void interruptTask() Overrides com. Doc from com. Subclasses can override this method to implement interruption of the future's computation. The
method is invoked automatically by a successful call to The default implementation does nothing. This method is likely to be deprecated. Prefer to override
| |
| releaseResources | back to summary |
|---|---|
| pack-priv void releaseResources(AggregateFuture. Overrides com. Doc from com. Clears fields that are no longer needed after this future has completed -- or at least all its
inputs have completed (more precisely, after This is similar to our proposed
| |
| Modifier and Type | Field and Description |
|---|---|
| private final AsyncCallable |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv ListenableFuture | runInterruptibly()
Implements abstract com. |
| pack-priv void | setValue(ListenableFuture<V> value)
Implements abstract com. |
| pack-priv String | toPendingString()
Implements abstract com. |
| callable | back to summary |
|---|---|
| private final AsyncCallable<V> callable | |
| AsyncCallableInterruptibleTask | back to summary |
|---|---|
| pack-priv AsyncCallableInterruptibleTask(AsyncCallable<V> callable, Executor listenerExecutor) | |
| runInterruptibly | back to summary |
|---|---|
| pack-priv ListenableFuture Implements abstract com. Doc from com. Do interruptible work here - do not complete Futures here, as their listeners could be interrupted.
| |
| setValue | back to summary |
|---|---|
| pack-priv void setValue(ListenableFuture<V> value) Implements abstract com.
| |
| toPendingString | back to summary |
|---|---|
| pack-priv String toPendingString() Implements abstract com.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv V | runInterruptibly()
Implements abstract com. |
| pack-priv void | setValue(V value)
Implements abstract com. |
| pack-priv String | toPendingString()
Implements abstract com. |
| callable | back to summary |
|---|---|
| private final Callable<V> callable | |
| CallableInterruptibleTask | back to summary |
|---|---|
| pack-priv CallableInterruptibleTask(Callable<V> callable, Executor listenerExecutor) | |
| runInterruptibly | back to summary |
|---|---|
| pack-priv V runInterruptibly() throws Exception Implements abstract com. Doc from com. Do interruptible work here - do not complete Futures here, as their listeners could be interrupted.
| |
| setValue | back to summary |
|---|---|
| pack-priv void setValue(V value) Implements abstract com.
| |
| toPendingString | back to summary |
|---|---|
| pack-priv String toPendingString() Implements abstract com.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Executor |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv final void | afterRanInterruptiblyFailure(Throwable error)
Implements abstract com. |
| pack-priv final void | afterRanInterruptiblySuccess(T result)
Implements abstract com. |
| pack-priv final void | |
| pack-priv final boolean | isDone()
Implements abstract com. |
| pack-priv abstract void |
| listenerExecutor | back to summary |
|---|---|
| private final Executor listenerExecutor | |
| CombinedFutureInterruptibleTask | back to summary |
|---|---|
| pack-priv CombinedFutureInterruptibleTask(Executor listenerExecutor) | |
| afterRanInterruptiblyFailure | back to summary |
|---|---|
| pack-priv final void afterRanInterruptiblyFailure(Throwable error) Implements abstract com. Doc from com. Any interruption that happens as a result of calling interruptTask will arrive before this method is called. Complete Futures here.
| |
| afterRanInterruptiblySuccess | back to summary |
|---|---|
| pack-priv final void afterRanInterruptiblySuccess(T result) Implements abstract com. Doc from com. Any interruption that happens as a result of calling interruptTask will arrive before this method is called. Complete Futures here.
| |
| execute | back to summary |
|---|---|
| pack-priv final void execute() | |
| isDone | back to summary |
|---|---|
| pack-priv final boolean isDone() Implements abstract com. Doc from com. Called before runInterruptibly - if true, runInterruptibly and afterRanInterruptibly will not be called.
| |
| setValue | back to summary |
|---|---|
| pack-priv abstract void setValue(T value) | |