|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
V
- the result type of the operationA
- the type of the object attached to the operationpublic interface CompletionHandler<V,A>
A handler for consuming the result of an asynchronous operation.
The completed()
method is invoked when the operation completes successfully.
The failed()
method is invoked if the operation fails.
Method Summary | |
---|---|
void |
completed(V result,
A attachment)
Invoked when an operation has completed. |
void |
failed(java.lang.Throwable exc,
A attachment)
Invoked when an operation fails. |
Method Detail |
---|
void completed(V result, A attachment)
result
- the result of the operationattachment
- the object attached to the operation when it was initiatedvoid failed(java.lang.Throwable exc, A attachment)
exc
- the exception to indicate why the operation failedattachment
- the object attached to the operation when it was initiated
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |