public interface ListenableFuture<T,L extends GenericCompletionListener>
extends java.util.concurrent.Future<T>
Future
that accepts one or more listeners that will be executed
asynchronously.Modifier and Type | Method and 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.
|
Copyright © 2006-2009 Dustin Sallings, 2009-2013 Couchbase, Inc.