java.lang.Object
dev.mccue.guava.concurrent.ClosingFuture.Peeker
- Enclosing class:
- ClosingFuture<V extends @Nullable Object>
An object that can return the value of the
ClosingFutures that are passed to
#whenAllComplete(Iterable) or #whenAllSucceed(Iterable).
Only for use by a CombiningCallable or AsyncCombiningCallable object.
-
Method Summary
Modifier and TypeMethodDescriptionfinal <D extends @Nullable Object>
DgetDone(ClosingFuture<D> closingFuture) Returns the value ofclosingFuture.
-
Method Details
-
getDone
public final <D extends @Nullable Object> D getDone(ClosingFuture<D> closingFuture) throws ExecutionException Returns the value ofclosingFuture.- Throws:
ExecutionException- ifclosingFutureis a failed stepCancellationException- if theclosingFuture's future was cancelledIllegalArgumentException- ifclosingFutureis not one of the futures passed to#whenAllComplete(Iterable)or#whenAllComplete(Iterable)IllegalStateException- if called outside of a call toCombiningCallable#call(DeferredCloser, Peeker)orAsyncCombiningCallable#call(DeferredCloser, Peeker)
-