Package org.glassfish.jersey.client.spi
Interface AsyncConnectorCallback
-
public interface AsyncConnectorCallbackAsynchronous connector response processing callback contract.- Author:
- Marek Potociar
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfailure(Throwable failure)Invoked in case the asynchronous request invocation failed.voidresponse(ClientResponse response)Invoked when a response for the asynchronously invoked request is available.
-
-
-
Method Detail
-
response
void response(ClientResponse response)
Invoked when a response for the asynchronously invoked request is available.- Parameters:
response- asynchronously received client response.
-
failure
void failure(Throwable failure)
Invoked in case the asynchronous request invocation failed.- Parameters:
failure- cause of the asynchronous request invocation failure.
-
-