C - the type of the context objectFuturePromise, Promise.Adapter, Promise.Wrapperpublic interface Promise<C>
A callback abstraction that handles completed/failed events of asynchronous operations.
| Modifier and Type | Interface | Description |
|---|---|---|
static class |
Promise.Adapter<C> |
Empty implementation of
Promise |
static class |
Promise.Wrapper<W> |
| Modifier and Type | Method | Description |
|---|---|---|
void |
failed(java.lang.Throwable x) |
Callback invoked when the operation fails.
|
void |
succeeded(C result) |
Callback invoked when the operation completes.
|
void succeeded(C result)
Callback invoked when the operation completes.
result - the contextfailed(Throwable)void failed(java.lang.Throwable x)
Callback invoked when the operation fails.
x - the reason for the operation failureCopyright © 1995–2018 Webtide. All rights reserved.