Future which is writable.
| Modifier and Type | Method and Description |
|---|---|
| public Future | |
| public Promise | setFailure(Throwable cause)
Marks this promise as a failure and notifies all listeners attached to the future. |
| public Promise | setSuccess(V result)
Marks this promise as a success and notifies all listeners attached to the future. |
| public boolean | Returns: true if and only if successfully marked this promise as uncancellable.
Otherwise false if this promise has been cancelled already, or has completed.Make this promise impossible to cancel. |
| public boolean | Returns: true if and only if successfully marked this promise as a failure.
Otherwise false because this promise is already marked as either a success or a failure.Marks this promise as a failure and notifies all listeners. |
| public boolean | Returns: true if and only if successfully marked this promise as a success.
Otherwise false because this promise is already marked as either a success or a failure.Marks this future as a success and notifies all listeners. |
| asFuture | back to summary |
|---|---|
| public Future Return the
| |
| setFailure | back to summary |
|---|---|
| public Promise Marks this promise as a failure and notifies all listeners attached to the future.
If it is success or failed already it will throw an | |
| setSuccess | back to summary |
|---|---|
| public Promise Marks this promise as a success and notifies all listeners attached to the future.
If it is success or failed already it will throw an | |
| setUncancellable | back to summary |
|---|---|
| public boolean setUncancellable() Make this promise impossible to cancel.
| |
| tryFailure | back to summary |
|---|---|
| public boolean tryFailure(Throwable cause) Marks this promise as a failure and notifies all listeners.
| |
| trySuccess | back to summary |
|---|---|
| public boolean trySuccess(V result) Marks this future as a success and notifies all listeners.
| |