Class ReactiveChildTemplate<T extends co.elastic.clients.transport.Transport,CLIENT extends co.elastic.clients.ApiClient<T,CLIENT>>

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

public class ReactiveChildTemplate<T extends co.elastic.clients.transport.Transport,CLIENT extends co.elastic.clients.ApiClient<T,CLIENT>> 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<T,CLIENT> 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