public abstract class ChildTemplate<CLIENT extends co.elastic.clients.ApiClient> extends Object
ElasticsearchClient's child
clients like ElasticsearchClusterClient or
ElasticsearchIndicesClient.| Modifier and Type | Class and Description |
|---|---|
static interface |
ChildTemplate.ClientCallback<CLIENT,RESULT>
Callback interface to be used with
execute(ClientCallback) for operating directly on the client. |
| Modifier and Type | Field and Description |
|---|---|
protected CLIENT |
client |
protected ElasticsearchExceptionTranslator |
exceptionTranslator |
protected org.springframework.data.elasticsearch.client.elc.RequestConverter |
requestConverter |
protected org.springframework.data.elasticsearch.client.elc.ResponseConverter |
responseConverter |
| Constructor and Description |
|---|
ChildTemplate(CLIENT client,
ElasticsearchConverter elasticsearchConverter) |
| Modifier and Type | Method and Description |
|---|---|
<RESULT> RESULT |
execute(ChildTemplate.ClientCallback<CLIENT,RESULT> callback)
Execute a callback with the client and provide exception translation.
|
protected final CLIENT extends co.elastic.clients.ApiClient client
protected final org.springframework.data.elasticsearch.client.elc.RequestConverter requestConverter
protected final org.springframework.data.elasticsearch.client.elc.ResponseConverter responseConverter
protected final ElasticsearchExceptionTranslator exceptionTranslator
public ChildTemplate(CLIENT client, ElasticsearchConverter elasticsearchConverter)
public <RESULT> RESULT execute(ChildTemplate.ClientCallback<CLIENT,RESULT> callback)
RESULT - the type returned from the callbackcallback - the callback to execute, must not be nullCopyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.