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.
  • Constructor Details

  • Method Details

    • createHttpAsyncResponseConsumer

      public org.apache.hc.core5.http.nio.AsyncResponseConsumer<org.apache.hc.core5.http.ClassicHttpResponse> createHttpAsyncResponseConsumer()
      Creates the AsyncResponseConsumer, called once per request attempt.
      Specified by:
      createHttpAsyncResponseConsumer in interface HttpAsyncResponseConsumerFactory