Interface ElasticsearchConfig
-
@ConfigMapping(prefix="quarkus.elasticsearch") @ConfigRoot(phase=RUN_TIME) public interface ElasticsearchConfig
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ElasticsearchConfig.DiscoveryConfig
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
hosts
@WithDefault("localhost:9200") List<InetSocketAddress> hosts()
The list of hosts of the Elasticsearch servers.
-
protocol
@WithDefault("http") String protocol()
The protocol to use when contacting Elasticsearch servers. Set to "https" to enable SSL/TLS.
-
connectionTimeout
@WithDefault("1S") Duration connectionTimeout()
The connection timeout.
-
socketTimeout
@WithDefault("30S") Duration 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
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
ElasticsearchConfig.DiscoveryConfig discovery()
Configuration for the automatic discovery of new Elasticsearch nodes.
-
-