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.HeapBufferedResponseConsumerFactoryDEFAULT| Constructor and Description |
|---|
HeapBufferedResponseConsumerFactory(int bufferLimitBytes) |
| Modifier and Type | Method and Description |
|---|---|
org.elasticsearch.client.http.nio.protocol.HttpAsyncResponseConsumer<org.elasticsearch.client.http.HttpResponse> |
createHttpAsyncResponseConsumer()
Creates the
HttpAsyncResponseConsumer, called once per request attempt. |
public HeapBufferedResponseConsumerFactory(int bufferLimitBytes)
public org.elasticsearch.client.http.nio.protocol.HttpAsyncResponseConsumer<org.elasticsearch.client.http.HttpResponse> createHttpAsyncResponseConsumer()
HttpAsyncResponseConsumerFactoryHttpAsyncResponseConsumer, called once per request attempt.createHttpAsyncResponseConsumer in interface HttpAsyncResponseConsumerFactory