Interface ListenableFuture<T, L extends GenericCompletionListener>
- All Superinterfaces:
Future<T>
- All Known Implementing Classes:
AbstractListenableFuture, BulkGetFuture, GetFuture, OperationFuture
A
Future that accepts one or more listeners that will be executed
asynchronously.-
Nested Class Summary
Nested classes/interfaces inherited from interface Future
Future.State -
Method Summary
Modifier and TypeMethodDescriptionaddListener(L listener) Add a listener to the future, which will be executed once the operation completes.removeListener(L listener) Remove a previously added listener from the future.Methods inherited from interface Future
cancel, exceptionNow, get, get, isCancelled, isDone, resultNow, state
-
Method Details
-
addListener
-
removeListener
-