Class ReactiveChildTemplate<CLIENT extends co.elastic.clients.ApiClient>

java.lang.Object
org.springframework.data.elasticsearch.client.elc.ReactiveChildTemplate<CLIENT>
Direct Known Subclasses:
ReactiveClusterTemplate, ReactiveIndicesTemplate

public class ReactiveChildTemplate<CLIENT extends co.elastic.clients.ApiClient> extends Object
base class for a reactive template that uses on of the ReactiveElasticsearchClient's child clients.
Since:
4.4
Author:
Peter-Josef Meisch
  • Field Details

    • client

      protected final CLIENT extends co.elastic.clients.ApiClient client
    • elasticsearchConverter

      protected final ElasticsearchConverter elasticsearchConverter
    • requestConverter

      protected final org.springframework.data.elasticsearch.client.elc.RequestConverter requestConverter
    • responseConverter

      protected final org.springframework.data.elasticsearch.client.elc.ResponseConverter responseConverter
    • exceptionTranslator

      protected final ElasticsearchExceptionTranslator exceptionTranslator
  • Constructor Details

  • Method Details

    • execute

      public <RESULT> org.reactivestreams.Publisher<RESULT> execute(ReactiveChildTemplate.ClientCallback<CLIENT,org.reactivestreams.Publisher<RESULT>> callback)
      Execute a callback with the client and provide exception translation.
      Type Parameters:
      RESULT - the type returned from the callback
      Parameters:
      callback - the callback to execute, must not be null
      Returns:
      the callback result