public interface CompletionListener
| Modifier and Type | Method | Description |
|---|---|---|
void |
onCompletion(CompletionRequest request,
java.lang.Object result) |
This method is invoked when a non-throwable result is
set into the request on which we are listening.
|
void |
onException(CompletionRequest request,
java.lang.Throwable reason) |
This method is invoked when a throwable result is set
into the request on which we are listening.
|
void onCompletion(CompletionRequest request, java.lang.Object result)
request - the request that successfully completedvoid onException(CompletionRequest request, java.lang.Throwable reason)
request - the request that has thrown an exception