Class ClosingFuture.Peeker
- java.lang.Object
- 
- com.google.common.util.concurrent.ClosingFuture.Peeker
 
- 
- Enclosing class:
- ClosingFuture<V extends @Nullable java.lang.Object>
 
 public static final class ClosingFuture.Peeker extends java.lang.Object An object that can return the value of theClosingFutures that are passed toClosingFuture.whenAllComplete(Iterable)orClosingFuture.whenAllSucceed(Iterable).Only for use by a ClosingFuture.Combiner.CombiningCallableorClosingFuture.Combiner.AsyncCombiningCallableobject.
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description <D extends @Nullable java.lang.Object>
 DgetDone(ClosingFuture<D> closingFuture)Returns the value ofclosingFuture.
 
- 
- 
- 
Method Detail- 
getDonepublic final <D extends @Nullable java.lang.Object> D getDone(ClosingFuture<D> closingFuture) throws java.util.concurrent.ExecutionException Returns the value ofclosingFuture.- Throws:
- java.util.concurrent.ExecutionException- if- closingFutureis a failed step
- java.util.concurrent.CancellationException- if the- closingFuture's future was cancelled
- java.lang.IllegalArgumentException- if- closingFutureis not one of the futures passed to- ClosingFuture.whenAllComplete(Iterable)or- ClosingFuture.whenAllComplete(Iterable)
- java.lang.IllegalStateException- if called outside of a call to- ClosingFuture.Combiner.CombiningCallable.call(DeferredCloser, Peeker)or- ClosingFuture.Combiner.AsyncCombiningCallable.call(DeferredCloser, Peeker)
 
 
- 
 
-