Interface RestClientOpenSearchConfiguration
- All Superinterfaces:
io.micronaut.core.util.Toggleable
- All Known Implementing Classes:
RestClientOpenSearchConfigurationProperties
public interface RestClientOpenSearchConfiguration
extends io.micronaut.core.util.Toggleable
Generic interface for the OpenSearch Configuration beans.
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.http.Header[]
The default headers that need to be sent with each request, to prevent having to specify them with each single request.org.apache.http.HttpHost[]
The one or more hosts that the client will communicate with, provided as instances ofHttpHost
.org.opensearch.client.NodeSelector
The node selector to be used to filter the nodes the client will send requests to among the ones that are set to the client itself.Methods inherited from interface io.micronaut.core.util.Toggleable
isEnabled
-
Method Details
-
getHttpHosts
org.apache.http.HttpHost[] getHttpHosts()The one or more hosts that the client will communicate with, provided as instances ofHttpHost
.- Returns:
- An array of
HttpHost
-
getDefaultHeaders
org.apache.http.Header[] getDefaultHeaders()The default headers that need to be sent with each request, to prevent having to specify them with each single request.- Returns:
- An array of
Header
.
-
getNodeSelector
org.opensearch.client.NodeSelector getNodeSelector()The node selector to be used to filter the nodes the client will send requests to among the ones that are set to the client itself. By default, the client sends requests to every configured node.- Returns:
- The
NodeSelector
to be used.
-