Package co.elastic.clients.transport
Class ElasticsearchTransportConfig.AbstractBuilder<BuilderT extends ElasticsearchTransportConfig.AbstractBuilder<BuilderT>>
java.lang.Object
co.elastic.clients.transport.ElasticsearchTransportConfig.AbstractBuilder<BuilderT>
- Direct Known Subclasses:
ElasticsearchTransportConfig.Builder
- Enclosing class:
- ElasticsearchTransportConfig
public abstract static class ElasticsearchTransportConfig.AbstractBuilder<BuilderT extends ElasticsearchTransportConfig.AbstractBuilder<BuilderT>>
extends Object
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet the API key to use to authenticate to Elasticsearch.protected ElasticsearchTransportConfigbuild()protected voidElasticsearch host locationElasticsearch host locationElasticsearch hosts locationsinstrumentation(Instrumentation instrumentation) Transport instrumentation to log client traffic.jsonMapper(JsonpMapper mapper) The JSON mapper to use.protected abstract BuilderTself()sslContext(SSLContext sslContext) SSL context to use for https connections.Set the bearer token to use to authenticate to Elasticsearch.transportOptions(TransportOptions transportOptions) Lower level transport options.Lower level transport options.useCompression(boolean useCompression) Should request and response body compression be used?usernameAndPassword(String username, String password) Set the username and password to use to connect to Elasticsearch.
-
Field Details
-
config
-
-
Constructor Details
-
AbstractBuilder
-
-
Method Details
-
self
-
build
-
host
Elasticsearch host location -
host
Elasticsearch host location -
hosts
Elasticsearch hosts locations -
usernameAndPassword
Set the username and password to use to connect to Elasticsearch. -
token
Set the bearer token to use to authenticate to Elasticsearch. -
apiKey
Set the API key to use to authenticate to Elasticsearch. -
useCompression
Should request and response body compression be used? -
sslContext
SSL context to use for https connections. SeeTransportUtilsto create it from a certificate file or a certificate fingerprint.- See Also:
-
jsonMapper
The JSON mapper to use. Defaults toJacksonJsonpMapper. -
instrumentation
Transport instrumentation to log client traffic. SeeOpenTelemetryForElasticsearchfor OpenTelemetry integration. -
transportOptions
Lower level transport options. -
transportOptions
Lower level transport options. This method adds options to the ones already set, if any. -
checkNull
-