| Modifier and Type | Class and Description |
|---|---|
| pack-priv static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final boolean | |
| private ImmutableCollection | futures
The input futures. |
| private static final LazyLogger |
| Access | Constructor and Description |
|---|---|
| pack-priv | AggregateFuture(ImmutableCollection<? extends ListenableFuture<? extends InputT>> futures, boolean allMustSucceed, boolean collectsValues)
|
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | addCausalChain(Set<Throwable> seen, Throwable param)
Adds the chain to the seen set, and returns whether all the chain was new to us. |
| pack-priv final void | addInitialException(Set<Throwable> seen)
Implements abstract com. seen with the exception that was passed to setException.
|
| protected final void | afterDone()
Overrides com. |
| pack-priv abstract void | collectOneValue(int index, InputT returnValue)
If |
| private void | collectValueFromNonCancelledFuture(int index, Future<? extends InputT> future)
Collects the result (success or failure) of one input future. |
| private void | decrementCountAndMaybeComplete(ImmutableCollection<? extends Future<? extends InputT>> futuresIfNeedToCollectAtCompletion)
|
| pack-priv abstract void | |
| private void | handleException(Throwable throwable)
Fails this future with the given Throwable if |
| pack-priv final void | |
| private static void | |
| protected final String | pendingToString()
Overrides com. |
| private void | processCompleted(ImmutableCollection<? extends Future<? extends InputT>> futuresIfNeedToCollectAtCompletion)
|
| pack-priv void | releaseResources(AggregateFuture.
Clears fields that are no longer needed after this future has completed -- or at least all its
inputs have completed (more precisely, after |
| allMustSucceed | back to summary |
|---|---|
| private final boolean allMustSucceed | |
| collectsValues | back to summary |
|---|---|
| private final boolean collectsValues | |
| futures | back to summary |
|---|---|
| private ImmutableCollection<? extends ListenableFuture<? extends InputT>> futures The input futures. After | |
| logger | back to summary |
|---|---|
| private static final LazyLogger logger | |
| AggregateFuture | back to summary |
|---|---|
| pack-priv AggregateFuture(ImmutableCollection<? extends ListenableFuture<? extends InputT>> futures, boolean allMustSucceed, boolean collectsValues) | |
| addCausalChain | back to summary |
|---|---|
| private static boolean addCausalChain(Set<Throwable> seen, Throwable param) Adds the chain to the seen set, and returns whether all the chain was new to us. | |
| addInitialException | back to summary |
|---|---|
| pack-priv final void addInitialException(Set<Throwable> seen) Implements abstract com. Doc from com. Populates
| |
| afterDone | back to summary |
|---|---|
| protected final void afterDone() Overrides com. Doc from com. Callback method that is called exactly once after the future is completed. If The default implementation of this method in
| |
| collectOneValue | back to summary |
|---|---|
| pack-priv abstract void collectOneValue(int index, InputT returnValue) If | |
| collectValueFromNonCancelledFuture | back to summary |
|---|---|
| private void collectValueFromNonCancelledFuture(int index, Future<? extends InputT> future) Collects the result (success or failure) of one input future. The input must not have been
cancelled. For details on when this is called, see | |
| decrementCountAndMaybeComplete | back to summary |
|---|---|
| private void decrementCountAndMaybeComplete(ImmutableCollection<? extends Future<? extends InputT>> futuresIfNeedToCollectAtCompletion) | |
| handleAllCompleted | back to summary |
|---|---|
| pack-priv abstract void handleAllCompleted() | |
| handleException | back to summary |
|---|---|
| private void handleException(Throwable throwable) Fails this future with the given Throwable if | |
| init | back to summary |
|---|---|
| pack-priv final void init() Must be called at the end of each subclass's constructor. This method performs the "real"
initialization; we can't put this in the constructor because, in the case where futures are
already complete, we would not initialize the subclass before calling | |
| log | back to summary |
|---|---|
| private static void log(Throwable throwable) | |
| pendingToString | back to summary |
|---|---|
| protected final String pendingToString() Overrides com. Doc from com. Provide a human-readable explanation of why this future has not yet completed.
| |
| processCompleted | back to summary |
|---|---|
| private void processCompleted(ImmutableCollection<? extends Future<? extends InputT>> futuresIfNeedToCollectAtCompletion) | |
| releaseResources | back to summary |
|---|---|
| pack-priv void releaseResources(AggregateFuture. 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 |
|---|---|
| public static final AggregateFuture. | |
| public static final AggregateFuture. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static AggregateFuture. | |
| public static AggregateFuture. |
| ALL_INPUT_FUTURES_PROCESSED | back to summary |
|---|---|
| public static final AggregateFuture. | |
| OUTPUT_FUTURE_DONE | back to summary |
|---|---|
| public static final AggregateFuture. | |
| ReleaseResourcesReason | back to summary |
|---|---|
| private ReleaseResourcesReason() | |
| valueOf | back to summary |
|---|---|
| public static AggregateFuture. | |
| values | back to summary |
|---|---|
| public static AggregateFuture. | |