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 Details

  • 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 of HttpHost.
      Specified by:
      getHttpHosts in interface HttpClient5OpenSearchConfiguration
      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 interface io.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