public static class HttpAsyncResponseConsumerFactory.HeapBufferedResponseConsumerFactory extends java.lang.Object implements HttpAsyncResponseConsumerFactory
HttpAsyncResponseConsumer
.
Creates one instance of HeapBufferedAsyncResponseConsumer
for each request attempt, with a configurable
buffer limit which defaults to 100MB.HttpAsyncResponseConsumerFactory.HeapBufferedResponseConsumerFactory
DEFAULT
Constructor and Description |
---|
HeapBufferedResponseConsumerFactory(int bufferLimitBytes) |
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. |
public HeapBufferedResponseConsumerFactory(int bufferLimitBytes)
public org.apache.http.nio.protocol.HttpAsyncResponseConsumer<org.apache.http.HttpResponse> createHttpAsyncResponseConsumer()
HttpAsyncResponseConsumerFactory
HttpAsyncResponseConsumer
, called once per request attempt.createHttpAsyncResponseConsumer
in interface HttpAsyncResponseConsumerFactory