public class FailedChannelFuture extends CompleteChannelFuture
CompleteChannelFuture
which is failed already. It is
recommended to use Channels.failedFuture(Channel, Throwable)
instead of calling the constructor of this future.构造器和说明 |
---|
FailedChannelFuture(Channel channel,
java.lang.Throwable cause)
Creates a new instance.
|
限定符和类型 | 方法和说明 |
---|---|
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. |
ChannelFuture |
sync()
Waits for this future until it is done, and rethrows the cause of the failure if this future
failed.
|
ChannelFuture |
syncUninterruptibly()
Waits for this future until it is done, and rethrows the cause of the failure if this future
failed.
|
addListener, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, cancel, getChannel, isCancelled, isDone, removeListener, setFailure, setProgress, setSuccess
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.public ChannelFuture sync() throws java.lang.InterruptedException
ChannelFuture
ChannelException
before being thrown.java.lang.InterruptedException
public ChannelFuture syncUninterruptibly()
ChannelFuture
ChannelException
before being thrown.