Class FailedChannelFuture
java.lang.Object
io.netty.util.concurrent.AbstractFuture<Void>
io.netty.util.concurrent.CompleteFuture<Void>
io.netty.channel.CompleteChannelFuture
io.netty.channel.FailedChannelFuture
- All Implemented Interfaces:
ChannelFuture, Future<Void>, Future<Void>
The
CompleteChannelFuture which is failed already. It is
recommended to use ChannelOutboundInvoker.newFailedFuture(Throwable)
instead of calling the constructor of this future.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFailedChannelFuture(Channel channel, EventExecutor executor, Throwable cause) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptioncause()Returns the cause of the failed I/O operation if the I/O operation has failed.booleanReturnstrueif and only if the I/O operation was completed successfully.sync()Waits for this future until it is done, and rethrows the cause of the failure if this future failed.Waits for this future until it is done, and rethrows the cause of the failure if this future failed.Methods inherited from class CompleteChannelFuture
addListener, addListeners, await, awaitUninterruptibly, channel, executor, getNow, isVoid, removeListener, removeListenersMethods inherited from class CompleteFuture
await, await, awaitUninterruptibly, awaitUninterruptibly, cancel, isCancellable, isCancelled, isDoneMethods inherited from class AbstractFuture
get, getMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Future
await, await, awaitUninterruptibly, awaitUninterruptibly, cancel, isCancellableMethods inherited from interface Future
get, get, isCancelled, isDone
-
Field Details
-
cause
-
-
Constructor Details
-
FailedChannelFuture
FailedChannelFuture(Channel channel, EventExecutor executor, Throwable cause) Creates a new instance.- Parameters:
channel- theChannelassociated with this futurecause- the cause of failure
-
-
Method Details
-
cause
-
isSuccess
public boolean isSuccess()Description copied from interface:FutureReturnstrueif and only if the I/O operation was completed successfully. -
sync
Description copied from interface:FutureWaits for this future until it is done, and rethrows the cause of the failure if this future failed.- Specified by:
syncin interfaceChannelFuture- Specified by:
syncin interfaceFuture<Void>- Overrides:
syncin classCompleteChannelFuture
-
syncUninterruptibly
Description copied from interface:FutureWaits for this future until it is done, and rethrows the cause of the failure if this future failed.- Specified by:
syncUninterruptiblyin interfaceChannelFuture- Specified by:
syncUninterruptiblyin interfaceFuture<Void>- Overrides:
syncUninterruptiblyin classCompleteChannelFuture
-