Class ElasticsearchConfig
- java.lang.Object
-
- io.quarkus.elasticsearch.restclient.lowlevel.runtime.ElasticsearchConfig
-
@ConfigRoot(phase=RUN_TIME) public class ElasticsearchConfig extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ElasticsearchConfig.DiscoveryConfig
-
Field Summary
Fields Modifier and Type Field Description Duration
connectionTimeout
The connection timeout.ElasticsearchConfig.DiscoveryConfig
discovery
Configuration for the automatic discovery of new Elasticsearch nodes.List<InetSocketAddress>
hosts
The list of hosts of the Elasticsearch servers.Optional<Integer>
ioThreadCounts
The number of IO thread.int
maxConnections
The maximum number of connections to all the Elasticsearch servers.int
maxConnectionsPerRoute
The maximum number of connections per Elasticsearch server.Optional<String>
password
The password for basic HTTP authentication.String
protocol
The protocol to use when contacting Elasticsearch servers.Duration
socketTimeout
The socket timeout.Optional<String>
username
The username for basic HTTP authentication.
-
Constructor Summary
Constructors Constructor Description ElasticsearchConfig()
-
-
-
Field Detail
-
hosts
@ConfigItem(defaultValue="localhost:9200") public List<InetSocketAddress> hosts
The list of hosts of the Elasticsearch servers.
-
protocol
@ConfigItem(defaultValue="http") public String protocol
The protocol to use when contacting Elasticsearch servers. Set to "https" to enable SSL/TLS.
-
username
@ConfigItem public Optional<String> username
The username for basic HTTP authentication.
-
password
@ConfigItem public Optional<String> password
The password for basic HTTP authentication.
-
connectionTimeout
@ConfigItem(defaultValue="1S") public Duration connectionTimeout
The connection timeout.
-
socketTimeout
@ConfigItem(defaultValue="30S") public Duration socketTimeout
The socket timeout.
-
maxConnections
@ConfigItem(defaultValue="20") public int maxConnections
The maximum number of connections to all the Elasticsearch servers.
-
maxConnectionsPerRoute
@ConfigItem(defaultValue="10") public int maxConnectionsPerRoute
The maximum number of connections per Elasticsearch server.
-
ioThreadCounts
@ConfigItem public Optional<Integer> ioThreadCounts
The number of IO thread. By default, this is the number of locally detected processors.Thread counts higher than the number of processors should not be necessary because the I/O threads rely on non-blocking operations, but you may want to use a thread count lower than the number of processors.
- See Also:
- number of threads
-
discovery
@ConfigItem public ElasticsearchConfig.DiscoveryConfig discovery
Configuration for the automatic discovery of new Elasticsearch nodes.
-
-