Package org.elasticsearch.client
Class HttpAsyncResponseConsumerFactory.HeapBufferedResponseConsumerFactory
java.lang.Object
org.elasticsearch.client.HttpAsyncResponseConsumerFactory.HeapBufferedResponseConsumerFactory
- All Implemented Interfaces:
HttpAsyncResponseConsumerFactory
- Enclosing interface:
- HttpAsyncResponseConsumerFactory
public static class HttpAsyncResponseConsumerFactory.HeapBufferedResponseConsumerFactory
extends Object
implements HttpAsyncResponseConsumerFactory
Default factory used to create instances of
HttpAsyncResponseConsumer
.
Creates one instance of HeapBufferedAsyncResponseConsumer
for each request attempt, with a configurable
buffer limit which defaults to 100MB.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.client.HttpAsyncResponseConsumerFactory
HttpAsyncResponseConsumerFactory.HeapBufferedResponseConsumerFactory
-
Field Summary
Fields inherited from interface org.elasticsearch.client.HttpAsyncResponseConsumerFactory
DEFAULT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.http.nio.protocol.HttpAsyncResponseConsumer<org.apache.http.HttpResponse>
Creates theHttpAsyncResponseConsumer
, called once per request attempt.
-
Constructor Details
-
HeapBufferedResponseConsumerFactory
public HeapBufferedResponseConsumerFactory(int bufferLimitBytes)
-
-
Method Details
-
createHttpAsyncResponseConsumer
public org.apache.http.nio.protocol.HttpAsyncResponseConsumer<org.apache.http.HttpResponse> createHttpAsyncResponseConsumer()Description copied from interface:HttpAsyncResponseConsumerFactory
Creates theHttpAsyncResponseConsumer
, called once per request attempt.- Specified by:
createHttpAsyncResponseConsumer
in interfaceHttpAsyncResponseConsumerFactory
-