public class ReactiveChildTemplate<CLIENT extends co.elastic.clients.ApiClient> extends Object
ReactiveElasticsearchClient's child clients.| Modifier and Type | Class and Description |
|---|---|
static interface |
ReactiveChildTemplate.ClientCallback<CLIENT,RESULT extends org.reactivestreams.Publisher<?>>
Callback interface to be used with
execute(ClientCallback) for operating directly on the client. |
| Modifier and Type | Field and Description |
|---|---|
protected CLIENT |
client |
protected ElasticsearchConverter |
elasticsearchConverter |
protected ElasticsearchExceptionTranslator |
exceptionTranslator |
protected org.springframework.data.elasticsearch.client.elc.RequestConverter |
requestConverter |
protected org.springframework.data.elasticsearch.client.elc.ResponseConverter |
responseConverter |
| Constructor and Description |
|---|
ReactiveChildTemplate(CLIENT client,
ElasticsearchConverter elasticsearchConverter) |
| Modifier and Type | Method and Description |
|---|---|
<RESULT> org.reactivestreams.Publisher<RESULT> |
execute(ReactiveChildTemplate.ClientCallback<CLIENT,org.reactivestreams.Publisher<RESULT>> callback)
Execute a callback with the client and provide exception translation.
|
protected final CLIENT extends co.elastic.clients.ApiClient client
protected final ElasticsearchConverter elasticsearchConverter
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 ReactiveChildTemplate(CLIENT client, ElasticsearchConverter elasticsearchConverter)
public <RESULT> org.reactivestreams.Publisher<RESULT> execute(ReactiveChildTemplate.ClientCallback<CLIENT,org.reactivestreams.Publisher<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.