org.glassfish.jersey.client.spi
Interface AsyncConnectorCallback


public interface AsyncConnectorCallback

Asynchronous connector response processing callback contract.

Author:
Marek Potociar (marek.potociar at oracle.com)

Method Summary
 void failure(java.lang.Throwable failure)
          Invoked in case the asynchronous request invocation failed.
 void response(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(java.lang.Throwable failure)
Invoked in case the asynchronous request invocation failed.

Parameters:
failure - cause of the asynchronous request invocation failure.


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.