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.Constructor and Description |
---|
SucceededChannelFuture(Channel channel)
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
true if and only if the I/O operation was completed
successfully. |
ChannelFuture |
rethrowIfFailed()
Deprecated.
|
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 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.@Deprecated public ChannelFuture rethrowIfFailed() throws Exception
Exception
public ChannelFuture sync() throws InterruptedException
ChannelFuture
ChannelException
before being thrown.InterruptedException
public ChannelFuture syncUninterruptibly()
ChannelFuture
ChannelException
before being thrown.Copyright © 2008-2015 The Netty Project. All Rights Reserved.