public static final class ClosingFuture.Peeker extends java.lang.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 java.util.concurrent.ExecutionException
closingFuture
.java.util.concurrent.ExecutionException
- if closingFuture
is a failed stepjava.util.concurrent.CancellationException
- if the closingFuture
's future was cancelledjava.lang.IllegalArgumentException
- if closingFuture
is not one of the futures passed to
ClosingFuture.whenAllComplete(Iterable)
or ClosingFuture.whenAllComplete(Iterable)
java.lang.IllegalStateException
- if called outside of a call to CombiningCallable#call(DeferredCloser, Peeker)
or AsyncCombiningCallable#call(DeferredCloser, Peeker)
Copyright © 2010–2021 JBoss by Red Hat. All rights reserved.