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 void
addHeader(java.lang.String name, java.lang.String value)
Add the provided header to the request.RequestOptions
build()
Build the RequestOptions.void
setHttpAsyncResponseConsumerFactory(HttpAsyncResponseConsumerFactory httpAsyncResponseConsumerFactory)
Set theHttpAsyncResponseConsumerFactory
used to create oneHttpAsyncResponseConsumer
callback 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 theHttpAsyncResponseConsumerFactory
used to create oneHttpAsyncResponseConsumer
callback per retry. Controls how the response body gets streamed from a non-blocking HTTP connection on the client side.
-
-