Package org.elasticsearch.client
Class RequestOptions.Builder
- java.lang.Object
-
- org.elasticsearch.client.RequestOptions.Builder
-
- Enclosing class:
- RequestOptions
public static class RequestOptions.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddHeader(java.lang.String name, java.lang.String value)Add the provided header to the request.RequestOptionsbuild()Build the RequestOptions.voidsetHttpAsyncResponseConsumerFactory(HttpAsyncResponseConsumerFactory httpAsyncResponseConsumerFactory)Set theHttpAsyncResponseConsumerFactoryused to create oneHttpAsyncResponseConsumercallback per retry.
-
-
-
Method Detail
-
build
public RequestOptions build()
Build the RequestOptions.
-
addHeader
public void addHeader(java.lang.String name, java.lang.String value)Add the provided header to the request.
-
setHttpAsyncResponseConsumerFactory
public void setHttpAsyncResponseConsumerFactory(HttpAsyncResponseConsumerFactory httpAsyncResponseConsumerFactory)
Set theHttpAsyncResponseConsumerFactoryused to create oneHttpAsyncResponseConsumercallback per retry. Controls how the response body gets streamed from a non-blocking HTTP connection on the client side.
-
-