public interface Callback
A callback abstraction that handles completed/failed events of asynchronous operations.
Semantically this is equivalent to an optimise Promise<Void>, but callback is a more meaningful name than EmptyPromise
Modifier and Type | Interface and Description |
---|---|
static class |
Callback.Adapter
Empty implementation of
Callback |
void succeeded()
Callback invoked when the operation completes.
failed(Throwable)
void failed(Throwable x)
Callback invoked when the operation fails.
x
- the reason for the operation failureCopyright © 1995-2015 Webtide. All Rights Reserved.