Class ElasticRestConnection

    • Constructor Detail

      • ElasticRestConnection

        public ElasticRestConnection()
      • ElasticRestConnection

        public ElasticRestConnection​(java.lang.String... urls)
    • Method Detail

      • getTransportUrls

        @NotNull
        @NonNull
        public @NotNull @NonNull java.util.List<java.lang.String> getTransportUrls()
        The list of URLs that we try to connect to.
      • setTransportUrls

        public void setTransportUrls​(@NotNull @NonNull
                                     @NotNull @NonNull java.util.List<java.lang.String> transportUrls)
        The list of URLs that we try to connect to.
      • getElasticClientCreator

        @NotNull
        @NonNull
        public @NotNull @NonNull ElasticClientCreator getElasticClientCreator()
        Controls how the underlying RestClient is configured.

        By default defaults to ElasticRestClientCreator if not explicitly confgured. You may need to use AdvancedElasticRestClientCreator if you are connecting to an instance that has specific requirements (e.g. AWS Managed Elastic).

      • setElasticClientCreator

        public void setElasticClientCreator​(@NotNull @NonNull
                                            @NotNull @NonNull ElasticClientCreator elasticClientCreator)
        Controls how the underlying RestClient is configured.

        By default defaults to ElasticRestClientCreator if not explicitly confgured. You may need to use AdvancedElasticRestClientCreator if you are connecting to an instance that has specific requirements (e.g. AWS Managed Elastic).