public static final class ClosingFuture.Peeker extends Object
ClosingFuture
s that are passed to ClosingFuture.whenAllComplete(Iterable)
or ClosingFuture.whenAllSucceed(Iterable)
.
Only for use by a ClosingFuture.Combiner.CombiningCallable
or ClosingFuture.Combiner.AsyncCombiningCallable
object.
Modifier and Type | Method and Description |
---|---|
<D> D |
getDone(ClosingFuture<D> closingFuture)
Returns the value of
closingFuture . |
public final <D> D getDone(ClosingFuture<D> closingFuture) throws ExecutionException
closingFuture
.ExecutionException
- if closingFuture
is a failed stepCancellationException
- if the closingFuture
's future was cancelledIllegalArgumentException
- if closingFuture
is not one of the futures passed to
ClosingFuture.whenAllComplete(Iterable)
or ClosingFuture.whenAllComplete(Iterable)
IllegalStateException
- if called outside of a call to CombiningCallable#call(DeferredCloser, Peeker)
or AsyncCombiningCallable#call(DeferredCloser, Peeker)
Copyright © 2010–2021. All rights reserved.