Package org.elasticsearch.client
Interface HttpAsyncResponseConsumerFactory
-
- All Known Implementing Classes:
HttpAsyncResponseConsumerFactory.HeapBufferedResponseConsumerFactory
public interface HttpAsyncResponseConsumerFactoryFactory used to create instances ofHttpAsyncResponseConsumer. Each request retry needs its own instance of the consumer object. Users can implement this interface and pass their own instance to the specialized performRequest methods that accept anHttpAsyncResponseConsumerFactoryinstance as argument.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classHttpAsyncResponseConsumerFactory.HeapBufferedResponseConsumerFactoryDefault factory used to create instances ofHttpAsyncResponseConsumer.
-
Field Summary
Fields Modifier and Type Field Description static HttpAsyncResponseConsumerFactoryDEFAULTCreates the default type ofHttpAsyncResponseConsumer, based on heap buffering with a buffer limit of 100MB.
-
Method Summary
Modifier and Type Method Description org.apache.http.nio.protocol.HttpAsyncResponseConsumer<org.apache.http.HttpResponse>createHttpAsyncResponseConsumer()Creates theHttpAsyncResponseConsumer, called once per request attempt.
-
-
-
Field Detail
-
DEFAULT
static final HttpAsyncResponseConsumerFactory DEFAULT
Creates the default type ofHttpAsyncResponseConsumer, based on heap buffering with a buffer limit of 100MB.
-
-