Class AutoCloseableElasticsearchClient
java.lang.Object
co.elastic.clients.ApiClient<co.elastic.clients.transport.ElasticsearchTransport,co.elastic.clients.elasticsearch.ElasticsearchClient>
co.elastic.clients.elasticsearch.ElasticsearchClient
org.springframework.data.elasticsearch.client.elc.AutoCloseableElasticsearchClient
- All Implemented Interfaces:
AutoCloseable
public class AutoCloseableElasticsearchClient
extends co.elastic.clients.elasticsearch.ElasticsearchClient
implements AutoCloseable
Extension of the
ElasticsearchClient
class that implements AutoCloseable
. As the underlying
RestClient
must be closed properly this is handled in the close()
method.- Since:
- 4.4
- Author:
- Peter-Josef Meisch
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
ConstructorDescriptionAutoCloseableElasticsearchClient
(co.elastic.clients.transport.ElasticsearchTransport transport) -
Method Summary
Methods inherited from class co.elastic.clients.elasticsearch.ElasticsearchClient
asyncSearch, autoscaling, bulk, bulk, bulk, cat, ccr, clearScroll, clearScroll, clearScroll, closePointInTime, closePointInTime, cluster, count, count, count, create, create, danglingIndices, delete, delete, deleteByQuery, deleteByQuery, deleteByQueryRethrottle, deleteByQueryRethrottle, deleteScript, deleteScript, enrich, eql, esql, exists, exists, existsSource, existsSource, explain, explain, explain, explain, features, fieldCaps, fieldCaps, fieldCaps, fleet, get, get, get, get, getScript, getScript, getScriptContext, getScriptLanguages, getSource, getSource, getSource, getSource, graph, healthReport, healthReport, healthReport, ilm, index, index, indices, inference, info, ingest, knnSearch, knnSearch, knnSearch, knnSearch, license, logstash, mget, mget, mget, mget, migration, ml, monitoring, msearch, msearch, msearch, msearch, msearchTemplate, msearchTemplate, msearchTemplate, msearchTemplate, mtermvectors, mtermvectors, mtermvectors, nodes, openPointInTime, openPointInTime, ping, putScript, putScript, queryRuleset, rankEval, rankEval, reindex, reindex, reindexRethrottle, reindexRethrottle, renderSearchTemplate, renderSearchTemplate, renderSearchTemplate, rollup, scriptsPainlessExecute, scriptsPainlessExecute, scriptsPainlessExecute, scriptsPainlessExecute, scroll, scroll, scroll, scroll, search, search, search, search, searchableSnapshots, searchApplication, searchMvt, searchMvt, searchShards, searchShards, searchShards, searchTemplate, searchTemplate, searchTemplate, searchTemplate, security, shutdown, slm, snapshot, sql, ssl, synonyms, tasks, termsEnum, termsEnum, termvectors, termvectors, textStructure, transform, update, update, update, update, updateByQuery, updateByQuery, updateByQueryRethrottle, updateByQueryRethrottle, watcher, withTransportOptions, xpack
Methods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, getDeserializer, withTransportOptions
-
Constructor Details
-
AutoCloseableElasticsearchClient
public AutoCloseableElasticsearchClient(co.elastic.clients.transport.ElasticsearchTransport transport)
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-