Class ElasticsearchProperties

java.lang.Object
org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchProperties

@ConfigurationProperties("spring.elasticsearch") public class ElasticsearchProperties extends Object
Configuration properties for Elasticsearch.
Since:
2.4.0
Author:
Andy Wilkinson
  • Constructor Details

    • ElasticsearchProperties

      public ElasticsearchProperties()
  • Method Details

    • getUris

      public List<String> getUris()
    • setUris

      public void setUris(List<String> uris)
    • getUsername

      public String getUsername()
    • setUsername

      public void setUsername(String username)
    • getPassword

      public String getPassword()
    • setPassword

      public void setPassword(String password)
    • getConnectionTimeout

      public Duration getConnectionTimeout()
    • setConnectionTimeout

      public void setConnectionTimeout(Duration connectionTimeout)
    • getSocketTimeout

      public Duration getSocketTimeout()
    • setSocketTimeout

      public void setSocketTimeout(Duration socketTimeout)
    • getPathPrefix

      public String getPathPrefix()
    • setPathPrefix

      public void setPathPrefix(String pathPrefix)
    • getRestclient

      public ElasticsearchProperties.Restclient getRestclient()