Interface ElasticsearchConfig
@ConfigMapping(prefix="quarkus.elasticsearch")
@ConfigRoot(phase=RUN_TIME)
public interface ElasticsearchConfig
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionThe connection timeout.Configuration for the automatic discovery of new Elasticsearch nodes.hosts()
The list of hosts of the Elasticsearch servers.The number of IO thread.int
The maximum number of connections to all the Elasticsearch servers.int
The maximum number of connections per Elasticsearch server.password()
The password for basic HTTP authentication.protocol()
The protocol to use when contacting Elasticsearch servers.The socket timeout.username()
The username for basic HTTP authentication.
-
Method Details
-
hosts
The list of hosts of the Elasticsearch servers. -
protocol
The protocol to use when contacting Elasticsearch servers. Set to "https" to enable SSL/TLS. -
username
The username for basic HTTP authentication. -
password
The password for basic HTTP authentication. -
connectionTimeout
The connection timeout. -
socketTimeout
The socket timeout. -
maxConnections
@WithDefault("20") int maxConnections()The maximum number of connections to all the Elasticsearch servers. -
maxConnectionsPerRoute
@WithDefault("10") int maxConnectionsPerRoute()The maximum number of connections per Elasticsearch server. -
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:
-
discovery
ElasticsearchConfig.DiscoveryConfig discovery()Configuration for the automatic discovery of new Elasticsearch nodes.
-