
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.| Constructor and Description | 
|---|
| FailedChannelFuture(Channel channel,
                   Throwable cause)Creates a new instance. | 
| Modifier and Type | Method and Description | 
|---|---|
| Throwable | getCause()Returns the cause of the failed I/O operation if the I/O operation has
 failed. | 
| boolean | isSuccess()Returns  trueif and only if the I/O operation was completed
 successfully. | 
| ChannelFuture | rethrowIfFailed() | 
| 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, setSuccesspublic Throwable getCause()
ChannelFuturenull if succeeded or this future is not
         completed yet.public boolean isSuccess()
ChannelFuturetrue if and only if the I/O operation was completed
 successfully.public ChannelFuture rethrowIfFailed() throws Exception
Exceptionpublic ChannelFuture sync() throws InterruptedException
ChannelFutureChannelException before being thrown.InterruptedExceptionpublic ChannelFuture syncUninterruptibly()
ChannelFutureChannelException before being thrown.Copyright © 2008-2013 The Netty Project. All Rights Reserved.