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