Class AdvancedElasticRestClientCreator

java.lang.Object
com.adaptris.core.elastic.rest.ElasticRestClientCreator
com.adaptris.core.elastic.rest.AdvancedElasticRestClientCreator
All Implemented Interfaces:
ElasticClientCreator

public class AdvancedElasticRestClientCreator extends ElasticRestClientCreator
Allows you to explicitly control the underlying high level rest client.
  • Constructor Details

    • AdvancedElasticRestClientCreator

      public AdvancedElasticRestClientCreator()
  • Method Details

    • configure

      public org.elasticsearch.client.RestClientBuilder configure(org.elasticsearch.client.RestClientBuilder builder)
    • withRequestInterceptors

      @Deprecated(since="4.5.0") public AdvancedElasticRestClientCreator withRequestInterceptors(List<com.adaptris.core.http.apache.request.RequestInterceptorBuilder> list)
      Deprecated.
    • withRequestInterceptors

      @Deprecated(since="4.5.0") public AdvancedElasticRestClientCreator withRequestInterceptors(com.adaptris.core.http.apache.request.RequestInterceptorBuilder... list)
      Deprecated.
    • withAsyncClientBuilderConfig

      public AdvancedElasticRestClientCreator withAsyncClientBuilderConfig(interlok.http.apache.async.HttpAsyncClientBuilderConfig cfg)
    • getRequestInterceptors

      @Deprecated public List<com.adaptris.core.http.apache.request.RequestInterceptorBuilder> getRequestInterceptors()
      Deprecated.
      A list of request interceptors that will be used to configure the rest client.

      This is the list of interceptors used to customize the underlying apache CloseableHttpClient instance used by a RestClient instance.

    • setRequestInterceptors

      @Deprecated public void setRequestInterceptors(List<com.adaptris.core.http.apache.request.RequestInterceptorBuilder> requestInterceptors)
      Deprecated.
      A list of request interceptors that will be used to configure the rest client.

      This is the list of interceptors used to customize the underlying apache CloseableHttpClient instance used by a RestClient instance.

    • getAsyncHttpClientConfig

      public interlok.http.apache.async.HttpAsyncClientBuilderConfig getAsyncHttpClientConfig()
      Additional configuration required for the underlying REST client.

      This is used to customise the underlying apache CloseableHttpClient instance used by a RestClient instance.

    • setAsyncHttpClientConfig

      public void setAsyncHttpClientConfig(interlok.http.apache.async.HttpAsyncClientBuilderConfig asyncHttpClientConfig)
      Additional configuration required for the underlying REST client.

      This is used to customise the underlying apache CloseableHttpClient instance used by a RestClient instance.