Example usage for Java io.netty.util.concurrent Future fields, constructors, methods, implement or subclass
The text is from its open source code.
Future | addListener(GenericFutureListener extends Future super V>> listener) Adds the specified listener to this future. |
Future | await() Waits for this future to be completed. |
boolean | await(long timeout, TimeUnit unit) Waits for this future to be completed within the specified time limit. |
boolean | await(long timeoutMillis) Waits for this future to be completed within the specified time limit. |
Future | awaitUninterruptibly() Waits for this future to be completed without interruption. |
boolean | awaitUninterruptibly(long timeoutMillis) Waits for this future to be completed within the specified time limit without interruption. |
boolean | cancel(boolean mayInterruptIfRunning) If the cancellation was successful it will fail the future with a CancellationException . |
Throwable | cause() Returns the cause of the failed I/O operation if the I/O operation has failed. |
V | getNow() Return the result without blocking. |
boolean | isSuccess() Returns true if and only if the I/O operation was completed successfully. |
Future | removeListener(GenericFutureListener extends Future super V>> listener) Removes the first occurrence of the specified listener from this future. |
Future | sync() Waits for this future until it is done, and rethrows the cause of the failure if this future failed. |
Future | syncUninterruptibly() Waits for this future until it is done, and rethrows the cause of the failure if this future failed. |