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 ofHttpAsyncResponseConsumer. Creates one instance ofHeapBufferedAsyncResponseConsumerfor 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 HttpAsyncResponseConsumer<HttpResponse>createHttpAsyncResponseConsumer()Creates theHttpAsyncResponseConsumer, called once per request attempt.
-
-
-
Method Detail
-
createHttpAsyncResponseConsumer
public HttpAsyncResponseConsumer<HttpResponse> createHttpAsyncResponseConsumer()
Description copied from interface:HttpAsyncResponseConsumerFactoryCreates theHttpAsyncResponseConsumer, called once per request attempt.- Specified by:
createHttpAsyncResponseConsumerin interfaceHttpAsyncResponseConsumerFactory
-
-