Java io.netty.util.concurrent Promise fields, constructors, methods, implement or subclass

Example usage for Java io.netty.util.concurrent Promise fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for io.netty.util.concurrent Promise.

The text is from its open source code.

Implementation

io.netty.util.concurrent.Promise has the following implementations.
Click this link to see all its implementation.

Method

PromiseaddListener(GenericFutureListener> listener)
Promiseawait()
booleanawait(long timeoutMillis)
Waits for this future to be completed within the specified time limit.
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.
VgetNow()
Return the result without blocking.
booleanisSuccess()
Returns true if and only if the I/O operation was completed successfully.
PromisesetFailure(Throwable cause)
Marks this future as a failure and notifies all listeners.
PromisesetSuccess(V result)
Marks this future as a success and notifies all listeners.
booleansetUncancellable()
Make this future impossible to cancel.
PromisesyncUninterruptibly()
booleantryFailure(Throwable cause)
Marks this future as a failure and notifies all listeners.
booleantrySuccess(V result)
Marks this future as a success and notifies all listeners.