public class AutoCloseableElasticsearchClient extends co.elastic.clients.elasticsearch.ElasticsearchClient implements AutoCloseable
ElasticsearchClient
class that implements AutoCloseable
. As the underlying
RestClient
must be closed properly this is handled in the close()
method.Constructor and Description |
---|
AutoCloseableElasticsearchClient(co.elastic.clients.transport.ElasticsearchTransport transport) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
co.elastic.clients.elasticsearch.cluster.ElasticsearchClusterClient |
cluster() |
asyncSearch, autoscaling, bulk, bulk, bulk, cat, ccr, clearScroll, clearScroll, clearScroll, closePointInTime, closePointInTime, count, count, count, create, create, danglingIndices, delete, delete, deleteByQuery, deleteByQuery, deleteByQueryRethrottle, deleteByQueryRethrottle, deleteScript, deleteScript, enrich, eql, exists, exists, existsSource, existsSource, explain, explain, features, fieldCaps, fieldCaps, get, get, getScript, getScript, getScriptContext, getScriptLanguages, getSource, getSource, graph, ilm, index, index, indices, info, ingest, license, logstash, mget, mget, migration, ml, monitoring, msearch, msearch, msearchTemplate, msearchTemplate, mtermvectors, mtermvectors, mtermvectors, nodes, openPointInTime, openPointInTime, ping, putScript, putScript, rankEval, rankEval, reindex, reindex, reindexRethrottle, reindexRethrottle, renderSearchTemplate, renderSearchTemplate, renderSearchTemplate, rollup, scriptsPainlessExecute, scriptsPainlessExecute, scroll, scroll, search, search, searchableSnapshots, searchShards, searchShards, searchShards, searchTemplate, searchTemplate, security, shutdown, slm, snapshot, sql, ssl, tasks, termsEnum, termsEnum, termvectors, termvectors, transform, update, update, updateByQuery, updateByQuery, updateByQueryRethrottle, updateByQueryRethrottle, watcher, withTransportOptions, xpack
public AutoCloseableElasticsearchClient(co.elastic.clients.transport.ElasticsearchTransport transport)
public void close() throws Exception
close
in interface AutoCloseable
Exception
public co.elastic.clients.elasticsearch.cluster.ElasticsearchClusterClient cluster()
cluster
in class co.elastic.clients.elasticsearch.ElasticsearchClient
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.