| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private Listener | |
| private static final Object | |
| private Object |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | addListener(Listener<T>
the listener listener)Implements io. Add a listener to the future result. |
| public synchronized Throwable | |
| public synchronized boolean | |
| protected void | |
| public synchronized boolean | |
| public Future | onComplete(Handler<T>
the handler that will be called with the succeeded result successHandler, Handler<Throwable> the handler that will be called with the failed result failureHandler)Overrides default io. Add handlers to be notified on succeeded result and failed result. |
| public Future | onComplete(Handler<AsyncResult<T>>
the handler that will be called with the result handler)Implements io. Add a handler to be notified of the result. |
| public Future | onFailure(Handler<Throwable>
the handler that will be called with the failed result handler)Overrides default io. Add a handler to be notified of the failed result. |
| public Future | onSuccess(Handler<T>
the handler that will be called with the succeeded result handler)Overrides default io. Add a handler to be notified of the succeeded result. |
| public void | removeListener(Listener<T>
the listener l)Implements io. Remove a listener to the future result. |
| public synchronized T | |
| public synchronized boolean | |
| public String | |
| public boolean | |
| public boolean |
| listener | back to summary |
|---|---|
| private Listener<T> listener | |
| NULL_VALUE | back to summary |
|---|---|
| private static final Object NULL_VALUE | |
| value | back to summary |
|---|---|
| private Object value | |
| FutureImpl | back to summary |
|---|---|
| protected FutureImpl() Create a future that hasn't completed yet | |
| FutureImpl | back to summary |
|---|---|
| protected FutureImpl(ContextInternal context) Create a future that hasn't completed yet | |
| addListener | back to summary |
|---|---|
| public void addListener(Listener<T> listener) Implements io. Doc from io. Add a listener to the future result. | |
| cause | back to summary |
|---|---|
| public synchronized Throwable cause() Implements io. An exception describing failure. This will be null if the operation succeeded.
| |
| failed | back to summary |
|---|---|
| public synchronized boolean failed() Implements io. Did it fail?
| |
| formatValue | back to summary |
|---|---|
| protected void formatValue(Object value, StringBuilder sb) | |
| isComplete | back to summary |
|---|---|
| public synchronized boolean isComplete() Implements io. Has it completed?
| |
| onComplete | back to summary |
|---|---|
| public Future Overrides default io. Doc from io. Add handlers to be notified on succeeded result and failed result. Warning this is a terminal operation.
If several | |
| onComplete | back to summary |
|---|---|
| public Future Implements io. Doc from io. Add a handler to be notified of the result. Warning this is a terminal operation.
If several
| |
| onFailure | back to summary |
|---|---|
| public Future Overrides default io. Doc from io. Add a handler to be notified of the failed result. Warning this is a terminal operation.
If several | |
| onSuccess | back to summary |
|---|---|
| public Future Overrides default io. Doc from io. Add a handler to be notified of the succeeded result. Warning this is a terminal operation.
If several | |
| removeListener | back to summary |
|---|---|
| public void removeListener(Listener<T> l) Implements io. Doc from io. Remove a listener to the future result. | |
| result | back to summary |
|---|---|
| public synchronized T result() Implements io. The result of the operation. This will be null if the operation failed.
| |
| succeeded | back to summary |
|---|---|
| public synchronized boolean succeeded() Implements io. Did it succeed?
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| tryComplete | back to summary |
|---|---|
| public boolean tryComplete(T result) | |
| tryFail | back to summary |
|---|---|
| public boolean tryFail(Throwable cause) | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| cause | back to summary |
|---|---|
| private final Throwable cause | |
| CauseHolder | back to summary |
|---|---|
| pack-priv CauseHolder(Throwable cause) | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | onFailure(Throwable
the failure failure)Implements io. Signal the failure |
| public void | onSuccess(T
the value value)Implements io. Signal the success. |
| ListenerArray | back to summary |
|---|---|
| private ListenerArray() | |
| onFailure | back to summary |
|---|---|
| public void onFailure(Throwable failure) Implements io. Doc from io. Signal the failure | |
| onSuccess | back to summary |
|---|---|
| public void onSuccess(T value) Implements io. Doc from io. Signal the success.
| |