Class HttpClient5OpenSearchConfigurationProperties
java.lang.Object
io.micronaut.opensearch.httpclient5.conf.HttpClient5OpenSearchConfigurationProperties
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable
,HttpClient5OpenSearchConfiguration
@ConfigurationProperties("micronaut.opensearch.httpclient5")
@Internal
public final class HttpClient5OpenSearchConfigurationProperties
extends Object
implements HttpClient5OpenSearchConfiguration
ConfigurationProperties
implementation of HttpClient5OpenSearchConfiguration
.- Since:
- 1.0.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
The default enable value.static final String
OpenSearch configuration. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hc.core5.http.HttpHost[]
The one or more hosts that the client will communicate with, provided as instances ofHttpHost
.boolean
void
setEnabled
(boolean enabled) If OpenSearch integration is enabled.void
setHttpHosts
(org.apache.hc.core5.http.HttpHost[] httpHosts)
-
Field Details
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDThe default enable value.- See Also:
-
PREFIX
OpenSearch configuration.- See Also:
-
-
Constructor Details
-
HttpClient5OpenSearchConfigurationProperties
public HttpClient5OpenSearchConfigurationProperties()
-
-
Method Details
-
getHttpHosts
public org.apache.hc.core5.http.HttpHost[] getHttpHosts()Description copied from interface:HttpClient5OpenSearchConfiguration
The one or more hosts that the client will communicate with, provided as instances ofHttpHost
.- Specified by:
getHttpHosts
in interfaceHttpClient5OpenSearchConfiguration
- Returns:
- An array of
HttpHost
-
setHttpHosts
public void setHttpHosts(org.apache.hc.core5.http.HttpHost[] httpHosts) - Parameters:
httpHosts
- One or more hosts that client will connect to.
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
-
setEnabled
public void setEnabled(boolean enabled) If OpenSearch integration is enabled. Default value true- Parameters:
enabled
- True if security is enabled
-