Java io.netty.channel ChannelPromise fields, constructors, methods, implement or subclass

Example usage for Java io.netty.channel ChannelPromise fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for io.netty.channel ChannelPromise.

The text is from its open source code.

Implementation

io.netty.channel.ChannelPromise has the following implementations.
Click this link to see all its implementation.

Method

ChannelPromiseaddListener(GenericFutureListener> listener)
booleanawait(long timeout, TimeUnit unit)
Waits for this future to be completed within the specified time limit.
booleanawait(long timeoutMillis)
Waits for this future to be completed within the specified time limit.
ChannelPromiseawait()
booleanawaitUninterruptibly(long timeout, TimeUnit unit)
Waits for this future to be completed within the specified time limit without interruption.
booleancancel(boolean mayInterruptIfRunning)
If the cancellation was successful it will fail the future with a CancellationException .
Throwablecause()
Returns the cause of the failed I/O operation if the I/O operation has failed.
Channelchannel()
booleanisSuccess()
Returns true if and only if the I/O operation was completed successfully.
booleanisVoid()
Returns true if this ChannelFuture is a void future and so not allow to call any of the following methods:
  • #addListener(GenericFutureListener)
  • #addListeners(GenericFutureListener[])
  • #await()
  • #await(long,TimeUnit) ()}
  • #await(long) ()}
  • #awaitUninterruptibly()
  • #sync()
  • #syncUninterruptibly()
ChannelPromisesetFailure(Throwable cause)
ChannelPromisesetSuccess()
ChannelPromisesetSuccess(Void result)
booleantryFailure(Throwable cause)
Marks this future as a failure and notifies all listeners.
booleantrySuccess()
ChannelPromiseunvoid()
Returns a new ChannelPromise if #isVoid() returns true otherwise itself.