T
- the type of a successful completionpublic interface AsyncCompletionHandler<T>
Modifier and Type | Method and Description |
---|---|
void |
completed(T t)
Invoked when an operation has completed.
|
void |
failed(java.lang.Throwable t)
Invoked when an operation fails.
|
void completed(T t)
t
- the result of the completed operationvoid failed(java.lang.Throwable t)
t
- the exception that describes the failure