Many operations in Vert.x APIs provide results back by passing an instance of this in a io..
The result can either have failed or succeeded.
If it failed then the cause of the failure is available with cause.
If it succeeded then the actual result is available with result
| Modifier and Type | Method and Description |
|---|---|
| public Throwable | |
| public boolean | |
| public default <U> AsyncResult | |
| public default <V> AsyncResult | Returns: the mapped async resultthe value that eventually completes the mapped async result value)Map the result of this async result to a specific |
| public default <V> AsyncResult | |
| public default AsyncResult | |
| public default AsyncResult | Returns: the mapped async resultthe value that eventually completes the mapped async result value)Map the failure of this async result to a specific |
| public default AsyncResult | |
| public T | |
| public boolean |
| cause | back to summary |
|---|---|
| public Throwable cause() A Throwable describing failure. This will be null if the operation succeeded.
| |
| failed | back to summary |
|---|---|
| public boolean failed() Did it fail?
| |
| map | back to summary |
|---|---|
| public default <U> AsyncResult Apply a
The
When this async result is failed, the failure will be propagated to the returned async result and the
| |
| map | back to summary |
|---|---|
| public default <V> AsyncResult Map the result of this async result to a specific
When this async result succeeds, this When this async result fails, the failure will be propagated to the returned async result.
| |
| mapEmpty | back to summary |
|---|---|
| public default <V> AsyncResult Map the result of this async result to
This is a convenience for
When this async result succeeds, When this async result fails, the failure will be propagated to the returned async result.
| |
| otherwise | back to summary |
|---|---|
| public default AsyncResult Apply a
The
When this async result is succeeded, the value will be propagated to the returned async result and the
| |
| otherwise | back to summary |
|---|---|
| public default AsyncResult Map the failure of this async result to a specific
When this async result fails, this When this async succeeds, the result will be propagated to the returned async result.
| |
| otherwiseEmpty | back to summary |
|---|---|
| public default AsyncResult Map the failure of this async result to
This is a convenience for
When this async result fails, the When this async succeeds, the result will be propagated to the returned async result.
| |
| result | back to summary |
|---|---|
| public T result() The result of the operation. This will be null if the operation failed.
| |
| succeeded | back to summary |
|---|---|
| public boolean succeeded() Did it succeed?
| |