Class ClientRest5ElasticsearchBackendClientSettings
Constants in this class are to be appended to a prefix to form a property key;
see BackendSettings for details.
- Author:
- Gunnar Morling
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDefault values for the different settings if no values are given. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAElasticsearchHttpClientConfigurerthat defines custom HTTP client configuration.static final StringThe timeout when establishing a connection to an Elasticsearch server.static final StringWhether automatic discovery of nodes in the Elasticsearch cluster is enabled.static final StringThe time interval between two executions of the automatic discovery, if enabled.static final StringThe maximum number of simultaneous connections to the Elasticsearch cluster, all hosts taken together.static final StringThe maximum number of simultaneous connections to each host of the Elasticsearch cluster.static final StringHow long connections to the Elasticsearch cluster can be kept idle.static final StringThe timeout when reading responses from an Elasticsearch server.static final StringThe timeout when executing a request to an Elasticsearch server. -
Method Summary
-
Field Details
-
REQUEST_TIMEOUT
The timeout when executing a request to an Elasticsearch server.This includes the time needed to establish a connection, send the request and read the response.
Expects a positive Integer value in milliseconds, such as 60000, or a String that can be parsed into such Integer value.
Defaults to no request timeout.
- See Also:
-
READ_TIMEOUT
The timeout when reading responses from an Elasticsearch server.Expects a positive Integer value in milliseconds, such as
60000, or a String that can be parsed into such Integer value.Defaults to
ClientRest5ElasticsearchBackendClientSettings.Defaults.READ_TIMEOUT.- See Also:
-
CONNECTION_TIMEOUT
The timeout when establishing a connection to an Elasticsearch server.Expects a positive Integer value in milliseconds, such as
3000, or a String that can be parsed into such Integer value.Defaults to
ClientRest5ElasticsearchBackendClientSettings.Defaults.CONNECTION_TIMEOUT.- See Also:
-
MAX_CONNECTIONS
The maximum number of simultaneous connections to the Elasticsearch cluster, all hosts taken together.Expects a positive Integer value, such as
40, or a String that can be parsed into such Integer value.Defaults to
ClientRest5ElasticsearchBackendClientSettings.Defaults.MAX_CONNECTIONS.- See Also:
-
MAX_CONNECTIONS_PER_ROUTE
The maximum number of simultaneous connections to each host of the Elasticsearch cluster.Expects a positive Integer value, such as
20, or a String that can be parsed into such Integer value.Defaults to
ClientRest5ElasticsearchBackendClientSettings.Defaults.MAX_CONNECTIONS_PER_ROUTE.- See Also:
-
DISCOVERY_ENABLED
Whether automatic discovery of nodes in the Elasticsearch cluster is enabled.Expects a Boolean value such as
trueorfalse, or a string that can be parsed into a Boolean value.Defaults to
ClientRest5ElasticsearchBackendClientSettings.Defaults.DISCOVERY_ENABLED.- See Also:
-
DISCOVERY_REFRESH_INTERVAL
The time interval between two executions of the automatic discovery, if enabled.Expects a positive Integer value in seconds, such as
2, or a String that can be parsed into such Integer value.Defaults to
ClientRest5ElasticsearchBackendClientSettings.Defaults.DISCOVERY_REFRESH_INTERVAL.- See Also:
-
MAX_KEEP_ALIVE
How long connections to the Elasticsearch cluster can be kept idle.Expects a positive Long value of milliseconds, such as 60000, or a String that can be parsed into such Integer value.
If the response from an Elasticsearch cluster contains a
Keep-Aliveheader, then the effective max idle time will be whichever is lower: the duration from theKeep-Aliveheader or the value of this property (if set).If this property is not set, only the
Keep-Aliveheader is considered, and if it's absent, idle connections will be kept forever.- See Also:
-
CLIENT_CONFIGURER
AElasticsearchHttpClientConfigurerthat defines custom HTTP client configuration.It can be used for example to tune the SSL context to accept self-signed certificates. It allows overriding other HTTP client settings, such as
ElasticsearchBackendSettings.USERNAMEorMAX_CONNECTIONS_PER_ROUTE.Expects a reference to a bean of type
ElasticsearchHttpClientConfigurer.Defaults to no value.
- See Also:
-