public class DefaultChannelGroupFuture extends java.lang.Object implements ChannelGroupFuture
ChannelGroupFuture implementation.| 构造器和说明 |
|---|
DefaultChannelGroupFuture(ChannelGroup group,
java.util.Collection<ChannelFuture> futures)
Creates a new instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addListener(ChannelGroupFutureListener listener)
Adds the specified listener to this future.
|
ChannelGroupFuture |
await()
Waits for this future to be completed.
|
boolean |
await(long timeoutMillis)
Waits for this future to be completed within the
specified time limit.
|
boolean |
await(long timeout,
java.util.concurrent.TimeUnit unit)
Waits for this future to be completed within the
specified time limit.
|
ChannelGroupFuture |
awaitUninterruptibly()
Waits for this future to be completed without
interruption.
|
boolean |
awaitUninterruptibly(long timeoutMillis)
Waits for this future to be completed within the
specified time limit without interruption.
|
boolean |
awaitUninterruptibly(long timeout,
java.util.concurrent.TimeUnit unit)
Waits for this future to be completed within the
specified time limit without interruption.
|
ChannelFuture |
find(Channel channel)
Returns the
ChannelFuture of the individual I/O operation which
is associated with the specified Channel. |
ChannelFuture |
find(java.lang.Integer channelId)
Returns the
ChannelFuture of the individual I/O operation which
is associated with the Channel whose ID matches the specified
integer. |
ChannelGroup |
getGroup()
Returns the
ChannelGroup which is associated with this future. |
boolean |
isCompleteFailure()
Returns
true if and only if all I/O operations associated with
this future have failed without any success. |
boolean |
isCompleteSuccess()
Returns
true if and only if all I/O operations associated with
this future were successful without any failure. |
boolean |
isDone()
Returns
true if and only if this future is
complete, regardless of whether the operation was successful, failed,
or canceled. |
boolean |
isPartialFailure()
Returns
true if and only if the I/O operations associated with
this future have failed partially with some success. |
boolean |
isPartialSuccess()
Returns
true if and only if the I/O operations associated with
this future were partially successful with some failure. |
java.util.Iterator<ChannelFuture> |
iterator()
Returns the
Iterator that enumerates all ChannelFutures
which are associated with this future. |
void |
removeListener(ChannelGroupFutureListener listener)
Removes the specified listener from this future.
|
public DefaultChannelGroupFuture(ChannelGroup group, java.util.Collection<ChannelFuture> futures)
public ChannelGroup getGroup()
ChannelGroupFutureChannelGroup which is associated with this future.getGroup 在接口中 ChannelGroupFuturepublic ChannelFuture find(java.lang.Integer channelId)
ChannelGroupFutureChannelFuture of the individual I/O operation which
is associated with the Channel whose ID matches the specified
integer.find 在接口中 ChannelGroupFutureChannelFuture if found.
null otherwise.public ChannelFuture find(Channel channel)
ChannelGroupFutureChannelFuture of the individual I/O operation which
is associated with the specified Channel.find 在接口中 ChannelGroupFutureChannelFuture if found.
null otherwise.public java.util.Iterator<ChannelFuture> iterator()
ChannelGroupFutureIterator that enumerates all ChannelFutures
which are associated with this future. Please note that the returned
Iterator is is unmodifiable, which means a ChannelFuture
cannot be removed from this future.iterator 在接口中 java.lang.Iterable<ChannelFuture>iterator 在接口中 ChannelGroupFuturepublic boolean isDone()
ChannelGroupFuturetrue if and only if this future is
complete, regardless of whether the operation was successful, failed,
or canceled.isDone 在接口中 ChannelGroupFuturepublic boolean isCompleteSuccess()
ChannelGroupFuturetrue if and only if all I/O operations associated with
this future were successful without any failure.isCompleteSuccess 在接口中 ChannelGroupFuturepublic boolean isPartialSuccess()
ChannelGroupFuturetrue if and only if the I/O operations associated with
this future were partially successful with some failure.isPartialSuccess 在接口中 ChannelGroupFuturepublic boolean isPartialFailure()
ChannelGroupFuturetrue if and only if the I/O operations associated with
this future have failed partially with some success.isPartialFailure 在接口中 ChannelGroupFuturepublic boolean isCompleteFailure()
ChannelGroupFuturetrue if and only if all I/O operations associated with
this future have failed without any success.isCompleteFailure 在接口中 ChannelGroupFuturepublic void addListener(ChannelGroupFutureListener listener)
ChannelGroupFutureaddListener 在接口中 ChannelGroupFuturepublic void removeListener(ChannelGroupFutureListener listener)
ChannelGroupFutureremoveListener 在接口中 ChannelGroupFuturepublic ChannelGroupFuture await() throws java.lang.InterruptedException
ChannelGroupFutureawait 在接口中 ChannelGroupFuturejava.lang.InterruptedException - if the current thread was interruptedpublic boolean await(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException
ChannelGroupFutureawait 在接口中 ChannelGroupFuturetrue if and only if the future was completed within
the specified time limitjava.lang.InterruptedException - if the current thread was interruptedpublic boolean await(long timeoutMillis)
throws java.lang.InterruptedException
ChannelGroupFutureawait 在接口中 ChannelGroupFuturetrue if and only if the future was completed within
the specified time limitjava.lang.InterruptedException - if the current thread was interruptedpublic ChannelGroupFuture awaitUninterruptibly()
ChannelGroupFutureInterruptedException and
discards it silently.awaitUninterruptibly 在接口中 ChannelGroupFuturepublic boolean awaitUninterruptibly(long timeout,
java.util.concurrent.TimeUnit unit)
ChannelGroupFutureInterruptedException and discards it silently.awaitUninterruptibly 在接口中 ChannelGroupFuturetrue if and only if the future was completed within
the specified time limitpublic boolean awaitUninterruptibly(long timeoutMillis)
ChannelGroupFutureInterruptedException and discards it silently.awaitUninterruptibly 在接口中 ChannelGroupFuturetrue if and only if the future was completed within
the specified time limit