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|
Empty implementation of
Callback invoked when the operation completes.
void failed(Throwable x)
Callback invoked when the operation fails.
x- the reason for the operation failure
Copyright © 1995-2014 Mort Bay Consulting. All Rights Reserved.