public interface ListenableFuture<T>
extends java.util.concurrent.Future<T>
| Modifier and Type | Method and Description |
|---|---|
void |
addCallback(ListenableFutureCallback<? super T> callback)
Registers the given callback to this
ListenableFuture. |
void addCallback(ListenableFutureCallback<? super T> callback)
ListenableFuture. The callback will
be triggered when this Future is complete or, if it is already complete,
immediately.callback - the callback to register