com.ning.http.client
Interface AsyncHandlerExtensions


public interface AsyncHandlerExtensions

This interface hosts new low level callback methods on AsyncHandler. For now, those methods are in a dedicated interface in order not to break the existing API, but could be merged into one of the existing ones in AHC 2. More additional hooks might come, such as:


Method Summary
 void onRequestSent()
          Notify the callback when a request is being written on the wire.
 void onRetry()
          Notify the callback every time a request is being retried.
 

Method Detail

onRequestSent

void onRequestSent()
Notify the callback when a request is being written on the wire. If the original request causes multiple requests to be sent, for example, because of authorization or retry, it will be notified multiple times. Currently only supported by the Netty provider.


onRetry

void onRetry()
Notify the callback every time a request is being retried.



Copyright © 2014. All Rights Reserved.