|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
RESPONSE
- response type. It can be either a general-purpose
Response
or the anticipated response entity
type.public interface InvocationCallback<RESPONSE>
Callback that can be implemented to receive the asynchronous processing events from the invocation processing.
Method Summary | |
---|---|
void |
completed(RESPONSE response)
Called when the invocation was successfully completed. |
void |
failed(ClientException error)
Called when the invocation has failed for any reason. |
Method Detail |
---|
void completed(RESPONSE response)
response
- response data.void failed(ClientException error)
Note that the provided ClientException
may contain a cause represented by nested
WebApplicationException
or one of its subclasses in case the response
status code is not successful
and the generic callback type is not Response
.
error
- contains failure details.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |