|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.netty.channel.CompleteChannelFuture
org.jboss.netty.channel.FailedChannelFuture
public class FailedChannelFuture
The CompleteChannelFuture
which is failed already. It is
recommended to use Channels.failedFuture(Channel, Throwable)
instead of calling the constructor of this future.
Constructor Summary | |
---|---|
FailedChannelFuture(Channel channel,
java.lang.Throwable cause)
Creates a new instance. |
Method Summary | |
---|---|
java.lang.Throwable |
getCause()
Returns the cause of the failed I/O operation if the I/O operation has failed. |
boolean |
isSuccess()
Returns true if and only if the I/O operation was completed
successfully. |
Methods inherited from class org.jboss.netty.channel.CompleteChannelFuture |
---|
addListener, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, cancel, getChannel, isCancelled, isDone, removeListener, setFailure, setProgress, setSuccess |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FailedChannelFuture(Channel channel, java.lang.Throwable cause)
channel
- the Channel
associated with this futurecause
- the cause of failureMethod Detail |
---|
public java.lang.Throwable getCause()
ChannelFuture
null
if succeeded or this future is not
completed yet.public boolean isSuccess()
ChannelFuture
true
if and only if the I/O operation was completed
successfully.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |