V
- the type of the exepcted value returned from the async operation's
Future.get()
.public interface FutureListener<V>
extends java.util.EventListener
ListenableFuture
operations complete.ListenableFuture
,
StateServerFuture
Modifier and Type | Method and Description |
---|---|
void |
operationComplete(java.util.concurrent.Future<V> future)
Called when an asynchronous operation completes.
|
void operationComplete(java.util.concurrent.Future<V> future)
future
- the Future
corresponding to the operation that completed. Implementors
may want to call Future.get()
to retrieve any results from the operation
or to catch any exceptions resulting from the operation.
future
may be safely cast to the Future
subclass on which this
listener originally registered.