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 java.lang.Object implements HttpAsyncResponseConsumerFactory
Default factory used to create instances ofAsyncResponseConsumer. 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.opensearch.client.transport.httpclient5.HttpAsyncResponseConsumerFactory
HttpAsyncResponseConsumerFactory.HeapBufferedResponseConsumerFactory
-
-
Field Summary
-
Fields inherited from interface org.opensearch.client.transport.httpclient5.HttpAsyncResponseConsumerFactory
DEFAULT
-
-
Constructor Summary
Constructors Constructor Description HeapBufferedResponseConsumerFactory(int bufferLimitBytes)Creates aHttpAsyncResponseConsumerFactory.HeapBufferedResponseConsumerFactoryinstance with the given buffer limit.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.hc.core5.http.nio.AsyncResponseConsumer<org.apache.hc.core5.http.ClassicHttpResponse>createHttpAsyncResponseConsumer()Creates theAsyncResponseConsumer, called once per request attempt.
-
-
-
Constructor Detail
-
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 Detail
-
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
-
-