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 ChannelFuture s
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()
ChannelGroupFuture
ChannelGroup
which is associated with this future.getGroup
在接口中 ChannelGroupFuture
public ChannelFuture find(java.lang.Integer channelId)
ChannelGroupFuture
ChannelFuture
of the individual I/O operation which
is associated with the Channel
whose ID matches the specified
integer.find
在接口中 ChannelGroupFuture
ChannelFuture
if found.
null
otherwise.public ChannelFuture find(Channel channel)
ChannelGroupFuture
ChannelFuture
of the individual I/O operation which
is associated with the specified Channel
.find
在接口中 ChannelGroupFuture
ChannelFuture
if found.
null
otherwise.public java.util.Iterator<ChannelFuture> iterator()
ChannelGroupFuture
Iterator
that enumerates all ChannelFuture
s
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
在接口中 ChannelGroupFuture
public boolean isDone()
ChannelGroupFuture
true
if and only if this future is
complete, regardless of whether the operation was successful, failed,
or canceled.isDone
在接口中 ChannelGroupFuture
public boolean isCompleteSuccess()
ChannelGroupFuture
true
if and only if all I/O operations associated with
this future were successful without any failure.isCompleteSuccess
在接口中 ChannelGroupFuture
public boolean isPartialSuccess()
ChannelGroupFuture
true
if and only if the I/O operations associated with
this future were partially successful with some failure.isPartialSuccess
在接口中 ChannelGroupFuture
public boolean isPartialFailure()
ChannelGroupFuture
true
if and only if the I/O operations associated with
this future have failed partially with some success.isPartialFailure
在接口中 ChannelGroupFuture
public boolean isCompleteFailure()
ChannelGroupFuture
true
if and only if all I/O operations associated with
this future have failed without any success.isCompleteFailure
在接口中 ChannelGroupFuture
public void addListener(ChannelGroupFutureListener listener)
ChannelGroupFuture
addListener
在接口中 ChannelGroupFuture
public void removeListener(ChannelGroupFutureListener listener)
ChannelGroupFuture
removeListener
在接口中 ChannelGroupFuture
public ChannelGroupFuture await() throws java.lang.InterruptedException
ChannelGroupFuture
await
在接口中 ChannelGroupFuture
java.lang.InterruptedException
- if the current thread was interruptedpublic boolean await(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
ChannelGroupFuture
await
在接口中 ChannelGroupFuture
true
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
ChannelGroupFuture
await
在接口中 ChannelGroupFuture
true
if and only if the future was completed within
the specified time limitjava.lang.InterruptedException
- if the current thread was interruptedpublic ChannelGroupFuture awaitUninterruptibly()
ChannelGroupFuture
InterruptedException
and
discards it silently.awaitUninterruptibly
在接口中 ChannelGroupFuture
public boolean awaitUninterruptibly(long timeout, java.util.concurrent.TimeUnit unit)
ChannelGroupFuture
InterruptedException
and discards it silently.awaitUninterruptibly
在接口中 ChannelGroupFuture
true
if and only if the future was completed within
the specified time limitpublic boolean awaitUninterruptibly(long timeoutMillis)
ChannelGroupFuture
InterruptedException
and discards it silently.awaitUninterruptibly
在接口中 ChannelGroupFuture
true
if and only if the future was completed within
the specified time limit