Top Description Constructors Methods
io.netty.channel

pack-priv final Class SucceededChannelFuture

extends CompleteChannelFuture
Class Inheritance
Imports
io.netty.util.concurrent.EventExecutor

The CompleteChannelFuture which is succeeded already. It is recommended to use Channel#newSucceededFuture() instead of calling the constructor of this future.

Constructor Summary

AccessConstructor and Description
pack-priv
SucceededChannelFuture(Channel
the Channel associated with this future
channel
,
EventExecutor executor)

Creates a new instance.

Method Summary

Modifier and TypeMethod and Description
public Throwable
cause()

Implements io.netty.util.concurrent.Future.cause.

Returns the cause of the failed I/O operation if the I/O operation has failed.
public boolean
isSuccess()

Implements io.netty.util.concurrent.Future.isSuccess.

Returns true if and only if the I/O operation was completed successfully.
Inherited from io.netty.channel.CompleteChannelFuture:
addListeneraddListenersawaitawaitUninterruptiblychannelexecutorgetNowisVoidremoveListenerremoveListenerssyncsyncUninterruptibly

Constructor Detail

SucceededChannelFutureback to summary
pack-priv SucceededChannelFuture(Channel channel, EventExecutor executor)

Creates a new instance.

Parameters
channel:Channel

the Channel associated with this future

Method Detail

causeback to summary
public Throwable cause()

Implements io.netty.util.concurrent.Future.cause.

Doc from io.netty.util.concurrent.Future.cause.

Returns the cause of the failed I/O operation if the I/O operation has failed.

Returns:Throwable

the cause of the failure. null if succeeded or this future is not completed yet.

Annotations
@Override
isSuccessback to summary
public boolean isSuccess()

Implements io.netty.util.concurrent.Future.isSuccess.

Doc from io.netty.util.concurrent.Future.isSuccess.

Returns true if and only if the I/O operation was completed successfully.

Annotations
@Override