ChannelGroupFuture implementation.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final FutureListener | |
| private int | |
| private final Map | |
| private final ChannelGroup | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv | DefaultChannelGroupFuture(ChannelGroup group, Map<Channel, Future<Void>> futures, EventExecutor executor)
|
| Modifier and Type | Method and Description |
|---|---|
| public DefaultChannelGroupFuture | addListener(FutureListener<? super Void>
The listener to be called when this future completes. The listener will be passed this future as
an argument. listener)Overrides io. Implements io. |
| public DefaultChannelGroupFuture | await()
Overrides io. Implements io. |
| public ChannelGroupException | cause()
Overrides io. Overrides default io. Implements io. |
| protected void | |
| public Future | find(Channel channel)
Implements io. Future of the individual I/O operation which
is associated with the specified Channel.
|
| public ChannelGroup | group()
Implements io. ChannelGroup which is associated with this future.
|
| public synchronized boolean | isPartialFailure()
Implements io. true if and only if the I/O operations associated with
this future have failed partially with some success.
|
| public synchronized boolean | isPartialSuccess()
Implements io. true if and only if the I/O operations associated with
this future were partially successful with some failure.
|
| public Iterator | iterator()
Implements io. Iterator that enumerates all Futures
which are associated with this future.
|
| public DefaultChannelGroupFuture | setFailure(Throwable cause)
Overrides io. Implements io. |
| private void | |
| public DefaultChannelGroupFuture | setSuccess(Void result)
Overrides io. Implements io. |
| private void | |
| public boolean | tryFailure(Throwable cause)
Overrides io. Implements io. |
| public boolean | trySuccess(Void result)
Overrides io. Implements io. |
| childListener | back to summary |
|---|---|
| private final FutureListener<Void> childListener | |
| failureCount | back to summary |
|---|---|
| private int failureCount | |
| futures | back to summary |
|---|---|
| private final Map<Channel, Future<Void>> futures | |
| group | back to summary |
|---|---|
| private final ChannelGroup group | |
| successCount | back to summary |
|---|---|
| private int successCount | |
| DefaultChannelGroupFuture | back to summary |
|---|---|
| pack-priv DefaultChannelGroupFuture(ChannelGroup group, Map<Channel, Future<Void>> futures, EventExecutor executor) | |
| addListener | back to summary |
|---|---|
| public DefaultChannelGroupFuture addListener(FutureListener<? super Void> listener) Overrides io. Implements io. Doc from io. Adds the specified listener to this future. The specified listener is notified when this future is done. If this future is already completed, the specified listener is notified immediately.
| |
| await | back to summary |
|---|---|
| public DefaultChannelGroupFuture await() throws InterruptedException Overrides io. Implements io. Doc from io. Waits for this future to be completed.
| |
| cause | back to summary |
|---|---|
| public ChannelGroupException cause() Overrides io. Overrides default io. Implements io. Doc from io. Returns the cause of the failed operation if the operation has failed.
| |
| checkDeadLock | back to summary |
|---|---|
| protected void checkDeadLock() Overrides io.
| |
| find | back to summary |
|---|---|
| public Future Implements io. Doc from io. Returns the | |
| group | back to summary |
|---|---|
| public ChannelGroup group() Implements io. Doc from io. Returns the
| |
| isPartialFailure | back to summary |
|---|---|
| public synchronized boolean isPartialFailure() Implements io. Doc from io. Returns
| |
| isPartialSuccess | back to summary |
|---|---|
| public synchronized boolean isPartialSuccess() Implements io. Doc from io. Returns
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements io. Doc from io. Returns the
| |
| setFailure | back to summary |
|---|---|
| public DefaultChannelGroupFuture setFailure(Throwable cause) Overrides io. Implements io. Doc from io. Marks this promise as a failure and notifies all listeners attached to the future.
If it is success or failed already it will throw an
| |
| setFailure0 | back to summary |
|---|---|
| private void setFailure0(ChannelGroupException cause) | |
| setSuccess | back to summary |
|---|---|
| public DefaultChannelGroupFuture setSuccess(Void result) Overrides io. Implements io. Doc from io. Marks this promise as a success and notifies all listeners attached to the future.
If it is success or failed already it will throw an
| |
| setSuccess0 | back to summary |
|---|---|
| private void setSuccess0() | |
| tryFailure | back to summary |
|---|---|
| public boolean tryFailure(Throwable cause) Overrides io. Implements io. Doc from io. Marks this promise as a failure and notifies all listeners.
| |
| trySuccess | back to summary |
|---|---|
| public boolean trySuccess(Void result) Overrides io. Implements io. Doc from io. Marks this future as a success and notifies all listeners.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public K | |
| public V | |
| public V | setValue(V
new value to be stored in this entry value)Implements java. |
| DefaultEntry | back to summary |
|---|---|
| pack-priv DefaultEntry(K key, V value) | |
| getKey | back to summary |
|---|---|
| public K getKey() Implements java. Doc from java. Returns the key corresponding to this entry.
| |
| getValue | back to summary |
|---|---|
| public V getValue() Implements java. Doc from java. Returns the value corresponding to this entry. If the mapping
has been removed from the backing map (by the iterator's
| |
| setValue | back to summary |
|---|---|
| public V setValue(V value) Implements java. Doc from java. Replaces the value corresponding to this entry with the specified
value (optional operation). (Writes through to the map.) The
behavior of this call is undefined if the mapping has already been
removed from the map (by the iterator's
| |