|
||||||||||
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(Throwable throwable)
Called when the invocation has failed for any reason. |
Method Detail |
---|
void completed(RESPONSE response)
response
- response data.void failed(Throwable throwable)
Note that the provided Throwable
may be a ProcessingException
in case the
invocation processing failure has been caused by a client-side runtime component error.
The Throwable
may also be a WebApplicationException
or one
of its subclasses in case the response status code is not
successful
and the generic
callback type is not Response
.
In case a processing of a properly received response fails, the wrapped processing exception
will be of ResponseProcessingException
type and will contain the Response
instance whose processing has failed.
A CancellationException
would be indicate that the invocation
has been cancelled.
An InterruptedException
would indicate that the thread executing the invocation has
been interrupted.
throwable
- contains failure details.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |