public interface ListenableFuture<T> extends Future<T>
Futureinterface with the capability to accept completion callbacks. If the future has already completed when the callback is added, the callback will be triggered immediately.
|Modifier and Type||Method and Description|
Registers the given callback to this
void addCallback(ListenableFutureCallback<? super T> callback)
ListenableFuture. The callback will be triggered when this
Futureis complete or, if it is already complete, immediately.
callback- the callback to register