Interface ConnectionFactory

All Known Implementing Classes:
UseOpensearchSDK2

public interface ConnectionFactory
  • Method Details

    • clone

    • createRestClient

      RestClient createRestClient() throws Exception
      Throws:
      Exception
    • getCredentials

      org.apache.http.client.CredentialsProvider getCredentials()
    • getCredentials5

      org.apache.hc.client5.http.auth.CredentialsProvider getCredentials5()
    • getHost

      org.apache.http.HttpHost getHost()
    • getHost5

      org.apache.hc.core5.http.HttpHost getHost5()
    • getHostName

      String getHostName()
    • getIndexName

      String getIndexName()
    • isTrustingSelfSigned

      boolean isTrustingSelfSigned()
    • reconnect

      void reconnect() throws IOException, InterruptedException
      Throws:
      IOException
      InterruptedException
    • setIndexName

      ConnectionFactory setIndexName(String idxName)
    • isServerless

      default boolean isServerless()
      Returns true when this connection targets an AWS OpenSearch Serverless (AOSS) collection.