public interface GenericCompletionListener<F extends java.util.concurrent.Future<?>>
extends java.util.EventListener
While this listener can be used directly, it is advised to subclass
it to make it easier for the API user to work with. See the
OperationCompletionListener
as an example.
Modifier and Type | Method and Description |
---|---|
void |
onComplete(F future)
This method will be executed once the future completes.
|
void onComplete(F future) throws java.lang.Exception
Completion includes both failure and success, so it is advised to always check the status and errors of the future.
future
- the future that got completed.java.lang.Exception
- can potentially throw anything in the callback.Copyright © 2006-2009 Dustin Sallings, 2009-2013 Couchbase, Inc.