E - the type of the child futures.public class CompositeIoFuture<E extends IoFuture> extends DefaultIoFuture
IoFuture of IoFutures. It is useful when you want to
get notified when all IoFutures are complete. It is not recommended
to use CompositeIoFuture if you just want to wait for all futures.
In that case, please use IoUtil.await(Iterable) instead
for better performance.| Modifier and Type | Class and Description |
|---|---|
private class |
CompositeIoFuture.NotifyingListener |
| Modifier and Type | Field and Description |
|---|---|
private boolean |
constructionFinished |
private CompositeIoFuture.NotifyingListener |
listener |
private java.util.concurrent.atomic.AtomicInteger |
unnotified |
| Constructor and Description |
|---|
CompositeIoFuture(java.lang.Iterable<E> children) |
addListener, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, getSession, getValue, isDone, join, join, removeListener, setValueprivate final CompositeIoFuture.NotifyingListener listener
private final java.util.concurrent.atomic.AtomicInteger unnotified
private volatile boolean constructionFinished
public CompositeIoFuture(java.lang.Iterable<E> children)