GeezerVison is showing netty.io — ChannelPromise (Netty API Reference (4.1.141.Final))
Interface ChannelPromise
-
Method Summary
Modifier and Type
Method
Description
Adds the specified listener to this future.
Adds the specified listeners to this future.
Waits for this future to be completed.
Waits for this future to be completed without
interruption.
Returns a channel where the I/O operation associated with this
future takes place.
Removes the first occurrence of the specified listener from this future.
Removes the first occurrence for each of the listeners from this future.
Marks this future as a failure and notifies all
listeners.
Marks this future as a success and notifies all
listeners.
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.
boolean
Methods inherited from interface ChannelFuture
isVoid
Modifier and Type
Method
Description
boolean
Methods inherited from interface Future
await, await, awaitUninterruptibly, awaitUninterruptibly, cancel, cause, getNow, isCancellable, isSuccess
Modifier and Type
Method
Description
boolean
await(long timeoutMillis)
Waits for this future to be completed within the
specified time limit.
boolean
Waits for this future to be completed within the
specified time limit.
boolean
Waits for this future to be completed within the
specified time limit without interruption.
boolean
Waits for this future to be completed within the
specified time limit without interruption.
boolean
cancel(boolean mayInterruptIfRunning)
Returns the cause of the failed I/O operation if the I/O operation has
failed.
Return the result without blocking.
boolean
boolean
Returns true if and only if the I/O operation was completed
successfully.
Methods inherited from interface Promise
setUncancellable, tryFailure, trySuccess
Modifier and Type
Method
Description
boolean
Make this future impossible to cancel.
boolean
Marks this future as a failure and notifies all
listeners.
boolean
Marks this future as a success and notifies all
listeners.
-
Method Details
-
channel
Returns a channel where the I/O operation associated with this
future takes place.
- Specified by:
channel in interface ChannelFuture
-
-
-
-
-
addListener
Description copied from interface: Future
Adds the specified listener to this future. The
specified listener is notified when this future is
done. If this future is already
completed, the specified listener is notified immediately.
- Specified by:
addListener in interface ChannelFuture
- Specified by:
addListener in interface Future<Void>
- Specified by:
addListener in interface Promise<Void>
-
-
removeListener
Description copied from interface: Future
Removes the first occurrence of the specified listener from this future.
The specified listener is no longer notified when this
future is done. If the specified
listener is not associated with this future, this method
does nothing and returns silently.
- Specified by:
removeListener in interface ChannelFuture
- Specified by:
removeListener in interface Future<Void>
- Specified by:
removeListener in interface Promise<Void>
-
removeListeners
Description copied from interface: Future
Removes the first occurrence for each of the listeners from this future.
The specified listeners are no longer notified when this
future is done. If the specified
listeners are not associated with this future, this method
does nothing and returns silently.
- Specified by:
removeListeners in interface ChannelFuture
- Specified by:
removeListeners in interface Future<Void>
- Specified by:
removeListeners in interface Promise<Void>
-
-
-
-
-
|