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 java.lang.Object implements HttpAsyncResponseConsumerFactory
Default factory used to create instances ofHttpAsyncResponseConsumer
. Creates one instance ofHeapBufferedAsyncResponseConsumer
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
Constructors Constructor Description HeapBufferedResponseConsumerFactory(int bufferLimitBytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.http.nio.protocol.HttpAsyncResponseConsumer<org.apache.http.HttpResponse>
createHttpAsyncResponseConsumer()
Creates theHttpAsyncResponseConsumer
, called once per request attempt.
-
-
-
Method Detail
-
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
-
-