Class RequestOptions


  • public final class RequestOptions
    extends java.lang.Object
    The portion of an HTTP request to Elasticsearch that can be manipulated without changing Elasticsearch's behavior.
    • Method Detail

      • getHeaders

        public java.util.List<org.apache.http.Header> getHeaders()
        Headers to attach to the request.
      • getHttpAsyncResponseConsumerFactory

        public HttpAsyncResponseConsumerFactory getHttpAsyncResponseConsumerFactory()
        The HttpAsyncResponseConsumerFactory used to create one HttpAsyncResponseConsumer callback 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:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object