Class ElasticsearchProperties
java.lang.Object
org.springframework.boot.elasticsearch.autoconfigure.ElasticsearchProperties
@ConfigurationProperties("spring.elasticsearch")
public class ElasticsearchProperties
extends Object
Configuration properties for Elasticsearch.
- Since:
- 4.0.0
- Author:
- Andy Wilkinson
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable String
@Nullable String
@Nullable String
getUris()
@Nullable String
boolean
void
void
setConnectionTimeout
(Duration connectionTimeout) void
setPassword
(@Nullable String password) void
setPathPrefix
(@Nullable String pathPrefix) void
setSocketKeepAlive
(boolean socketKeepAlive) void
setSocketTimeout
(Duration socketTimeout) void
void
setUsername
(@Nullable String username)
-
Constructor Details
-
ElasticsearchProperties
public ElasticsearchProperties()
-
-
Method Details
-
getUris
-
setUris
-
getUsername
-
setUsername
-
getPassword
-
setPassword
-
getApiKey
-
setApiKey
-
getConnectionTimeout
-
setConnectionTimeout
-
getSocketTimeout
-
setSocketTimeout
-
isSocketKeepAlive
public boolean isSocketKeepAlive() -
setSocketKeepAlive
public void setSocketKeepAlive(boolean socketKeepAlive) -
getPathPrefix
-
setPathPrefix
-
getRestclient
-