|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.netty.channel.group.DefaultChannelGroupFuture
public class DefaultChannelGroupFuture
The default ChannelGroupFuture
implementation.
Constructor Summary | |
---|---|
DefaultChannelGroupFuture(ChannelGroup group,
Collection<ChannelFuture> futures)
Creates a new instance. |
Method Summary | |
---|---|
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,
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,
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(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. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultChannelGroupFuture(ChannelGroup group, Collection<ChannelFuture> futures)
Method Detail |
---|
public ChannelGroup getGroup()
ChannelGroupFuture
ChannelGroup
which is associated with this future.
getGroup
in interface ChannelGroupFuture
public ChannelFuture find(Integer channelId)
ChannelGroupFuture
ChannelFuture
of the individual I/O operation which
is associated with the Channel
whose ID matches the specified
integer.
find
in interface 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
in interface ChannelGroupFuture
ChannelFuture
if found.
null
otherwise.public 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
in interface Iterable<ChannelFuture>
iterator
in interface 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
in interface ChannelGroupFuture
public boolean isCompleteSuccess()
ChannelGroupFuture
true
if and only if all I/O operations associated with
this future were successful without any failure.
isCompleteSuccess
in interface 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
in interface 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
in interface ChannelGroupFuture
public boolean isCompleteFailure()
ChannelGroupFuture
true
if and only if all I/O operations associated with
this future have failed without any success.
isCompleteFailure
in interface ChannelGroupFuture
public void addListener(ChannelGroupFutureListener listener)
ChannelGroupFuture
addListener
in interface ChannelGroupFuture
public void removeListener(ChannelGroupFutureListener listener)
ChannelGroupFuture
removeListener
in interface ChannelGroupFuture
public ChannelGroupFuture await() throws InterruptedException
ChannelGroupFuture
await
in interface ChannelGroupFuture
InterruptedException
- if the current thread was interruptedpublic boolean await(long timeout, TimeUnit unit) throws InterruptedException
ChannelGroupFuture
await
in interface ChannelGroupFuture
true
if and only if the future was completed within
the specified time limit
InterruptedException
- if the current thread was interruptedpublic boolean await(long timeoutMillis) throws InterruptedException
ChannelGroupFuture
await
in interface ChannelGroupFuture
true
if and only if the future was completed within
the specified time limit
InterruptedException
- if the current thread was interruptedpublic ChannelGroupFuture awaitUninterruptibly()
ChannelGroupFuture
InterruptedException
and
discards it silently.
awaitUninterruptibly
in interface ChannelGroupFuture
public boolean awaitUninterruptibly(long timeout, TimeUnit unit)
ChannelGroupFuture
InterruptedException
and discards it silently.
awaitUninterruptibly
in interface 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
in interface ChannelGroupFuture
true
if and only if the future was completed within
the specified time limit
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |