public interface HttpAsyncResponseConsumerFactory
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.Modifier and Type | Interface and Description |
---|---|
static class |
HttpAsyncResponseConsumerFactory.HeapBufferedResponseConsumerFactory
Default factory used to create instances of
HttpAsyncResponseConsumer . |
Modifier and Type | Field and Description |
---|---|
static HttpAsyncResponseConsumerFactory |
DEFAULT
Creates the default type of
HttpAsyncResponseConsumer , based on heap buffering with a buffer limit of 100MB. |
Modifier and Type | Method and Description |
---|---|
org.apache.http.nio.protocol.HttpAsyncResponseConsumer<org.apache.http.HttpResponse> |
createHttpAsyncResponseConsumer()
Creates the
HttpAsyncResponseConsumer , called once per request attempt. |
static final HttpAsyncResponseConsumerFactory DEFAULT
HttpAsyncResponseConsumer
, based on heap buffering with a buffer limit of 100MB.