public interface ListenableFuture<T,L extends GenericCompletionListener> extends Future<T>
Future
that accepts one or more listeners that will be executed
asynchronously.Modifier and Type | Method and Description |
---|---|
Future<T> |
addListener(L listener)
Add a listener to the future, which will be executed once the operation
completes.
|
Future<T> |
removeListener(L listener)
Remove a previously added listener from the future.
|
Copyright © 2017. All rights reserved.