Class HttpAsyncResponseConsumerFactory.HeapBufferedResponseConsumerFactory
java.lang.Object
org.opensearch.client.transport.httpclient5.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
AsyncResponseConsumer.
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.opensearch.client.transport.httpclient5.HttpAsyncResponseConsumerFactory
HttpAsyncResponseConsumerFactory.HeapBufferedResponseConsumerFactory -
Field Summary
Fields inherited from interface org.opensearch.client.transport.httpclient5.HttpAsyncResponseConsumerFactory
DEFAULT -
Constructor Summary
ConstructorsConstructorDescriptionHeapBufferedResponseConsumerFactory(int bufferLimitBytes) Creates aHttpAsyncResponseConsumerFactory.HeapBufferedResponseConsumerFactoryinstance with the given buffer limit. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hc.core5.http.nio.AsyncResponseConsumer<org.apache.hc.core5.http.ClassicHttpResponse> Creates theAsyncResponseConsumer, called once per request attempt.
-
Constructor Details
-
HeapBufferedResponseConsumerFactory
public HeapBufferedResponseConsumerFactory(int bufferLimitBytes) Creates aHttpAsyncResponseConsumerFactory.HeapBufferedResponseConsumerFactoryinstance with the given buffer limit.- Parameters:
bufferLimitBytes- the buffer limit to be applied to this instance
-
-
Method Details
-
createHttpAsyncResponseConsumer
public org.apache.hc.core5.http.nio.AsyncResponseConsumer<org.apache.hc.core5.http.ClassicHttpResponse> createHttpAsyncResponseConsumer()Creates theAsyncResponseConsumer, called once per request attempt.- Specified by:
createHttpAsyncResponseConsumerin interfaceHttpAsyncResponseConsumerFactory
-