public interface ListenableFuture<T> extends Future<T>
Futurewith the capability to accept completion callbacks. If the future has completed when the callback is added, the callback is triggered immediately.
|Modifier and Type||Method and Description|
Register the given
Java 8 lambda-friendly alternative with success and failure callbacks.
void addCallback(ListenableFutureCallback<? super T> callback)
callback- the callback to register