Package com.adaptris.core.elastic.rest
Class AdvancedElasticRestClientCreator
java.lang.Object
com.adaptris.core.elastic.rest.ElasticRestClientCreator
com.adaptris.core.elastic.rest.AdvancedElasticRestClientCreator
- All Implemented Interfaces:
ElasticClientCreator
Allows you to explicitly control the underlying high level rest client.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.elasticsearch.client.RestClientBuilder
configure
(org.elasticsearch.client.RestClientBuilder builder) interlok.http.apache.async.HttpAsyncClientBuilderConfig
Additional configuration required for the underlying REST client.List<com.adaptris.core.http.apache.request.RequestInterceptorBuilder>
Deprecated.void
setAsyncHttpClientConfig
(interlok.http.apache.async.HttpAsyncClientBuilderConfig asyncHttpClientConfig) Additional configuration required for the underlying REST client.void
setRequestInterceptors
(List<com.adaptris.core.http.apache.request.RequestInterceptorBuilder> requestInterceptors) Deprecated.withAsyncClientBuilderConfig
(interlok.http.apache.async.HttpAsyncClientBuilderConfig cfg) withRequestInterceptors
(com.adaptris.core.http.apache.request.RequestInterceptorBuilder... list) Deprecated.withRequestInterceptors
(List<com.adaptris.core.http.apache.request.RequestInterceptorBuilder> list) Deprecated.Methods inherited from class com.adaptris.core.elastic.rest.ElasticRestClientCreator
createTransportClient
-
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 aRestClient
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 aRestClient
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 aRestClient
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 aRestClient
instance.
-