Interface ElasticsearchConfig


@ConfigMapping(prefix="quarkus.elasticsearch") @ConfigRoot(phase=RUN_TIME) public interface ElasticsearchConfig
  • Method Details

    • 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.
    • username

      Optional<String> username()
      The username for basic HTTP authentication.
    • password

      Optional<String> password()
      The password for basic HTTP authentication.
    • 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:
    • discovery

      Configuration for the automatic discovery of new Elasticsearch nodes.