C
- the type of the context objectpublic interface Promise<C>
A callback abstraction that handles completed/failed events of asynchronous operations.
Modifier and Type | Interface and Description |
---|---|
static class |
Promise.Adapter<C>
Empty implementation of
Promise |
void succeeded(C result)
Callback invoked when the operation completes.
result
- the contextfailed(Throwable)
void failed(Throwable x)
Callback invoked when the operation fails.
x
- the reason for the operation failureCopyright © 1995-2015 Webtide. All Rights Reserved.