Package net.spy.memcached.internal
Interface ListenableFuture<T,L extends GenericCompletionListener>
-
- All Superinterfaces:
java.util.concurrent.Future<T>
- All Known Implementing Classes:
AbstractListenableFuture
,BulkGetFuture
,GetFuture
,OperationFuture
public interface ListenableFuture<T,L extends GenericCompletionListener> extends java.util.concurrent.Future<T>
AFuture
that accepts one or more listeners that will be executed asynchronously.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.Future<T>
addListener(L listener)
Add a listener to the future, which will be executed once the operation completes.java.util.concurrent.Future<T>
removeListener(L listener)
Remove a previously added listener from the future.
-