Class RestClientTransport
java.lang.Object
co.elastic.clients.transport.ElasticsearchTransportBase
co.elastic.clients.transport.rest_client.RestClientTransport
- All Implemented Interfaces:
ElasticsearchTransport,Transport,Closeable,AutoCloseable
-
Field Summary
Fields inherited from class co.elastic.clients.transport.ElasticsearchTransportBase
httpClient, instrumentation, JSON_CONTENT_TYPE, mapper, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionRestClientTransport(org.elasticsearch.client.RestClient restClient, JsonpMapper jsonpMapper) RestClientTransport(org.elasticsearch.client.RestClient restClient, JsonpMapper jsonpMapper, RestClientOptions options) RestClientTransport(org.elasticsearch.client.RestClient restClient, JsonpMapper jsonpMapper, RestClientOptions options, Instrumentation instrumentation) -
Method Summary
Modifier and TypeMethodDescriptionprotected ElasticsearchTransportBasecloneWith(TransportOptions options, JsonpMapper mapper, Instrumentation instrumentation) INTERNAL, used only for tests.org.elasticsearch.client.RestClientwithOptions(TransportOptions options) Clone this transport with new options.Methods inherited from class co.elastic.clients.transport.ElasticsearchTransportBase
close, httpClient, jsonpMapper, options, performRequest, performRequestAsyncMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface co.elastic.clients.transport.Transport
withOptions
-
Constructor Details
-
RestClientTransport
-
RestClientTransport
-
RestClientTransport
public RestClientTransport(org.elasticsearch.client.RestClient restClient, JsonpMapper jsonpMapper, RestClientOptions options) -
RestClientTransport
public RestClientTransport(org.elasticsearch.client.RestClient restClient, JsonpMapper jsonpMapper, RestClientOptions options, Instrumentation instrumentation)
-
-
Method Details
-
restClient
public org.elasticsearch.client.RestClient restClient() -
withOptions
Description copied from interface:TransportClone this transport with new options. -
cloneWith
protected ElasticsearchTransportBase cloneWith(TransportOptions options, JsonpMapper mapper, Instrumentation instrumentation) INTERNAL, used only for tests.- Overrides:
cloneWithin classElasticsearchTransportBase
-