Class ClosingFuture.Peeker
-
- com.google.common.util.concurrent.ClosingFuture.Peeker
-
- Enclosing class:
- ClosingFuture<V>
public static final class ClosingFuture.Peeker extends
An object that can return the value of theClosingFuture
s that are passed toClosingFuture.whenAllComplete(Iterable)
orClosingFuture.whenAllSucceed(Iterable)
.Only for use by a
ClosingFuture.Combiner.CombiningCallable
orClosingFuture.Combiner.AsyncCombiningCallable
object.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <D extends >
DgetDone(ClosingFuture<D> closingFuture)
Returns the value ofclosingFuture
.
-
-
-
Method Detail
-
getDone
public final <D extends > D getDone(ClosingFuture<D> closingFuture) throws
Returns the value ofclosingFuture
.- Throws:
- if
closingFuture
is a failed step- if the
closingFuture
's future was cancelled- if
closingFuture
is not one of the futures passed toClosingFuture.whenAllComplete(Iterable)
orClosingFuture.whenAllComplete(Iterable)
- if called outside of a call to
ClosingFuture.Combiner.CombiningCallable.call(DeferredCloser, Peeker)
orClosingFuture.Combiner.AsyncCombiningCallable.call(DeferredCloser, Peeker)
-
-