Package org.elasticsearch.client
Class RequestOptions
- java.lang.Object
-
- org.elasticsearch.client.RequestOptions
-
public final class RequestOptions extends java.lang.ObjectThe portion of an HTTP request to Elasticsearch that can be manipulated without changing Elasticsearch's behavior.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRequestOptions.Builder
-
Field Summary
Fields Modifier and Type Field Description static RequestOptionsDEFAULT
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.List<org.apache.http.Header>getHeaders()Headers to attach to the request.HttpAsyncResponseConsumerFactorygetHttpAsyncResponseConsumerFactory()TheHttpAsyncResponseConsumerFactoryused to create oneHttpAsyncResponseConsumercallback per retry.inthashCode()RequestOptions.BuildertoBuilder()java.lang.StringtoString()
-
-
-
Field Detail
-
DEFAULT
public static final RequestOptions DEFAULT
-
-
Method Detail
-
toBuilder
public RequestOptions.Builder toBuilder()
-
getHeaders
public java.util.List<org.apache.http.Header> getHeaders()
Headers to attach to the request.
-
getHttpAsyncResponseConsumerFactory
public HttpAsyncResponseConsumerFactory getHttpAsyncResponseConsumerFactory()
TheHttpAsyncResponseConsumerFactoryused to create oneHttpAsyncResponseConsumercallback per retry. Controls how the response body gets streamed from a non-blocking HTTP connection on the client side.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-