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
public class AdvancedElasticRestClientCreator extends ElasticRestClientCreator
Allows you to explicitly control the underlying high level rest client.
-
-
Constructor Summary
Constructors Constructor Description AdvancedElasticRestClientCreator()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.elasticsearch.client.RestClientBuilder
configure(org.elasticsearch.client.RestClientBuilder builder)
interlok.http.apache.async.HttpAsyncClientBuilderConfig
getAsyncHttpClientConfig()
Additional configuration required for the underlying REST client.java.util.List<com.adaptris.core.http.apache.request.RequestInterceptorBuilder>
getRequestInterceptors()
Deprecated.void
setAsyncHttpClientConfig(interlok.http.apache.async.HttpAsyncClientBuilderConfig asyncHttpClientConfig)
Additional configuration required for the underlying REST client.void
setRequestInterceptors(java.util.List<com.adaptris.core.http.apache.request.RequestInterceptorBuilder> requestInterceptors)
Deprecated.AdvancedElasticRestClientCreator
withAsyncClientBuilderConfig(interlok.http.apache.async.HttpAsyncClientBuilderConfig cfg)
AdvancedElasticRestClientCreator
withRequestInterceptors(com.adaptris.core.http.apache.request.RequestInterceptorBuilder... list)
Deprecated.AdvancedElasticRestClientCreator
withRequestInterceptors(java.util.List<com.adaptris.core.http.apache.request.RequestInterceptorBuilder> list)
Deprecated.-
Methods inherited from class com.adaptris.core.elastic.rest.ElasticRestClientCreator
createTransportClient
-
-
-
-
Method Detail
-
configure
public org.elasticsearch.client.RestClientBuilder configure(org.elasticsearch.client.RestClientBuilder builder)
-
withRequestInterceptors
@Deprecated(since="4.5.0") public AdvancedElasticRestClientCreator withRequestInterceptors(java.util.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 java.util.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(java.util.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.
-
-