Class RestClient.ConfigCallback
java.lang.Object
org.apache.pulsar.io.elasticsearch.client.RestClient.ConfigCallback
- All Implemented Interfaces:
org.elasticsearch.client.RestClientBuilder.HttpClientConfigCallback
,org.opensearch.client.RestClientBuilder.HttpClientConfigCallback
- Enclosing class:
- RestClient
public class RestClient.ConfigCallback
extends Object
implements org.elasticsearch.client.RestClientBuilder.HttpClientConfigCallback, org.opensearch.client.RestClientBuilder.HttpClientConfigCallback
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.http.nio.conn.NHttpClientConnectionManager
org.apache.http.impl.nio.client.HttpAsyncClientBuilder
customizeHttpClient
(org.apache.http.impl.nio.client.HttpAsyncClientBuilder builder)
-
Constructor Details
-
ConfigCallback
public ConfigCallback()
-
-
Method Details
-
customizeHttpClient
public org.apache.http.impl.nio.client.HttpAsyncClientBuilder customizeHttpClient(org.apache.http.impl.nio.client.HttpAsyncClientBuilder builder) - Specified by:
customizeHttpClient
in interfaceorg.elasticsearch.client.RestClientBuilder.HttpClientConfigCallback
- Specified by:
customizeHttpClient
in interfaceorg.opensearch.client.RestClientBuilder.HttpClientConfigCallback
-
buildConnectionManager
public org.apache.http.nio.conn.NHttpClientConnectionManager buildConnectionManager(ElasticSearchConfig config)
-