public interface DefaultElasticsearchConfiguration
Modifier and Type | Method and 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() |
org.apache.http.HttpHost[] getHttpHosts()
HttpHost
.HttpHost
org.apache.http.Header[] getDefaultHeaders()
Header
.int getMaxRetryTimeoutMillis()
org.elasticsearch.client.NodeSelector getNodeSelector()
NodeSelector
to be used.org.apache.http.client.config.RequestConfig.Builder getRequestConfigBuilder()
org.apache.http.impl.nio.client.HttpAsyncClientBuilder getHttpAsyncClientBuilder()
HttpAsyncClientBuilder
allows to set).HttpAsyncClientBuilder
bean