public class FutureCombiner<T> extends AsyncFuture<T>
Awaitable.AbstractAwaitable, Awaitable.AsyncAwaitable, Awaitable.Defaults, Awaitable.SyncAwaitable
CANCELLED, UNCANCELLABLE, UNSET
Modifier and Type | Method and Description |
---|---|
static <V> Future<java.util.List<V>> |
allOf(java.util.Collection<? extends io.netty.util.concurrent.Future<? extends V>> futures)
Waits only until the first failure, or until all have succeeded.
|
boolean |
cancel(boolean b) |
static FutureCombiner<java.lang.Void> |
nettySuccessListener(java.util.Collection<? extends io.netty.util.concurrent.Future<?>> futures)
Waits for all of
futures to complete, only propagating failures on completion |
protected boolean |
setUncancellable() |
protected boolean |
setUncancellableExclusive() |
static <V> Future<java.util.List<V>> |
successfulOf(java.util.List<? extends io.netty.util.concurrent.Future<V>> futures)
Waits for all futures to complete, returning a list containing values of all successful input futures.
|
protected boolean |
tryFailure(java.lang.Throwable throwable) |
protected boolean |
trySuccess(T t) |
await, awaitUntil, flatMap, map
addCallback, addCallback, addCallback, addCallback, addCallback, addCallback, addListener, addListener, addListener, addListeners, await, awaitThrowUncheckedOnInterrupt, awaitThrowUncheckedOnInterrupt, awaitUninterruptibly, awaitUninterruptibly, awaitUntilThrowUncheckedOnInterrupt, awaitUntilUninterruptibly, cause, description, flatMap, get, get, getNow, getWhenDone, isCancellable, isCancelled, isDone, isSuccess, isUncancellable, map, map, notifyExecutor, removeListener, removeListeners, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
await, awaitUninterruptibly, flatMap, rethrowIfFailed, sync, syncThrowUncheckedOnInterrupt, syncUninterruptibly
protected boolean setUncancellable()
setUncancellable
in class AbstractFuture<T>
protected boolean setUncancellableExclusive()
setUncancellableExclusive
in class AbstractFuture<T>
protected boolean trySuccess(T t)
trySuccess
in class AbstractFuture<T>
protected boolean tryFailure(java.lang.Throwable throwable)
tryFailure
in class AbstractFuture<T>
public boolean cancel(boolean b)
cancel
in interface java.util.concurrent.Future<T>
cancel
in class AbstractFuture<T>
public static FutureCombiner<java.lang.Void> nettySuccessListener(java.util.Collection<? extends io.netty.util.concurrent.Future<?>> futures)
futures
to complete, only propagating failures on completionpublic static <V> Future<java.util.List<V>> allOf(java.util.Collection<? extends io.netty.util.concurrent.Future<? extends V>> futures)
futures
- futures to wait for completion offutures
public static <V> Future<java.util.List<V>> successfulOf(java.util.List<? extends io.netty.util.concurrent.Future<V>> futures)
futures
- futures to wait for completion offutures
and nulls for non-successful futuresCopyright © 2009-2022 The Apache Software Foundation