Class CompositeIoFuture<E extends IoFuture>
java.lang.Object
org.apache.mina.core.future.DefaultIoFuture
org.apache.mina.core.future.CompositeIoFuture<E>
- Type Parameters:
E- the type of the child futures.
- All Implemented Interfaces:
IoFuture
An
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.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanA flag set to TRUE when all the future have been added to the listprivate final CompositeIoFuture<E>.NotifyingListenerA listenerprivate final AtomicIntegerA thread safe counter that is used to keep a track of the notified futures -
Constructor Summary
ConstructorsConstructorDescriptionCompositeIoFuture(Iterable<E> children) Creates a new CompositeIoFuture instance -
Method Summary
Methods inherited from class DefaultIoFuture
addListener, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, getSession, getValue, isDone, join, join, removeListener, setValue
-
Field Details
-
listener
A listener -
unnotified
A thread safe counter that is used to keep a track of the notified futures -
constructionFinished
private volatile boolean constructionFinishedA flag set to TRUE when all the future have been added to the list
-
-
Constructor Details
-
CompositeIoFuture
-