RESPONSE - response type. It can be either a general-purpose
Response or the anticipated response entity
type.public interface InvocationCallback<RESPONSE>
void completed(RESPONSE response)
response - response data.void failed(Throwable throwable)
Note that the provided Throwable may be a ClientException 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.
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.Copyright © 2013. All Rights Reserved.