Interface HttpAsyncResponseConsumerFactory

All Known Implementing Classes:
HttpAsyncResponseConsumerFactory.HeapBufferedResponseConsumerFactory

public interface HttpAsyncResponseConsumerFactory
Factory used to create instances of HttpAsyncResponseConsumer. Each request retry needs its own instance of the consumer object. Users can implement this interface and pass their own instance to the specialized performRequest methods that accept an HttpAsyncResponseConsumerFactory instance as argument.
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Interface Description
    static class  HttpAsyncResponseConsumerFactory.HeapBufferedResponseConsumerFactory
    Default factory used to create instances of HttpAsyncResponseConsumer.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static HttpAsyncResponseConsumerFactory DEFAULT
    Creates the default type of HttpAsyncResponseConsumer, based on heap buffering with a buffer limit of 100MB.
  • Method Summary

    Modifier and Type Method Description
    org.apache.http.nio.protocol.HttpAsyncResponseConsumer<org.apache.http.HttpResponse> createHttpAsyncResponseConsumer()
    Creates the HttpAsyncResponseConsumer, called once per request attempt.
  • Field Details

  • Method Details

    • createHttpAsyncResponseConsumer

      org.apache.http.nio.protocol.HttpAsyncResponseConsumer<org.apache.http.HttpResponse> createHttpAsyncResponseConsumer()
      Creates the HttpAsyncResponseConsumer, called once per request attempt.