Interface DefaultElasticsearchConfiguration

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.apache.http.Header[] getDefaultHeaders()
      The default headers that need to be sent with each request, to prevent having to specify them with each single request.
      org.apache.http.impl.nio.client.HttpAsyncClientBuilder getHttpAsyncClientBuilder()
      The http client configuration (e.g.
      org.apache.http.HttpHost[] getHttpHosts()
      The one or more hosts that the client will communicate with, provided as instances of HttpHost.
      int getMaxRetryTimeoutMillis()
      The timeout that should be honoured in case multiple attempts are made for the same request.
      org.elasticsearch.client.NodeSelector getNodeSelector()
      The node selector to be used to filter the nodes the client will send requests to among the ones that are set to the client itself.
      org.apache.http.client.config.RequestConfig.Builder getRequestConfigBuilder()  
    • Method Detail

      • getHttpHosts

        org.apache.http.HttpHost[] getHttpHosts()
        The one or more hosts that the client will communicate with, provided as instances of HttpHost.
        Returns:
        An array of HttpHost
      • getDefaultHeaders

        org.apache.http.Header[] getDefaultHeaders()
        The default headers that need to be sent with each request, to prevent having to specify them with each single request.
        Returns:
        An array of Header.
      • getMaxRetryTimeoutMillis

        int getMaxRetryTimeoutMillis()
        The timeout that should be honoured in case multiple attempts are made for the same request. The default value is 30 seconds.
        Returns:
        The maximum retry timeout in millis.
      • getNodeSelector

        org.elasticsearch.client.NodeSelector getNodeSelector()
        The node selector to be used to filter the nodes the client will send requests to among the ones that are set to the client itself. By default the client sends requests to every configured node.
        Returns:
        The NodeSelector to be used.
      • getRequestConfigBuilder

        org.apache.http.client.config.RequestConfig.Builder getRequestConfigBuilder()
        Returns:
        The builder to create default request configurations.
      • getHttpAsyncClientBuilder

        org.apache.http.impl.nio.client.HttpAsyncClientBuilder getHttpAsyncClientBuilder()
        The http client configuration (e.g. encrypted communication over ssl, or anything that the HttpAsyncClientBuilder allows to set).
        Returns:
        The HttpAsyncClientBuilder bean