public class SucceededChannelFuture extends CompleteChannelFuture
CompleteChannelFuture which is succeeded already. It is
recommended to use Channels#succeededFuture(Channel) instead of
calling the constructor of this future.ChannelFuture.Unsafe| Constructor and Description |
|---|
SucceededChannelFuture(Channel channel)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Throwable |
cause()
Returns the cause of the failed I/O operation if the I/O operation has
failed.
|
Void |
get() |
Void |
get(long timeout,
TimeUnit unit) |
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, cancel, channel, isCancelled, isDone, removeListener, setFailure, setProgress, setSuccesspublic Throwable cause()
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 sync() throws InterruptedException
ChannelFutureChannelException before being thrown.InterruptedExceptionpublic ChannelFuture syncUninterruptibly()
ChannelFutureChannelException before being thrown.public Void get() throws InterruptedException, ExecutionException
public Void get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
Copyright © 2008-2012 The Netty Project. All Rights Reserved.