Class ElasticsearchUtil.Client

  • Enclosing class:
    ElasticsearchUtil

    public abstract static class ElasticsearchUtil.Client
    extends java.lang.Object
    Elasticsearch client-related operations.
    Since:
    14.0.0
    Version:
    $Revision: 24561 $ $Date: 2021-06-25 11:01:24 -0300 (Fri, 25 Jun 2021) $
    • Constructor Summary

      Constructors 
      Constructor Description
      Client()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <REQ,​RESP>
      RESP
      executeSync​(REQ request, java.util.function.Function<org.elasticsearch.client.RestHighLevelClient,​ElasticsearchUtil.Client.IResponseSupplier<REQ,​RESP>> supplierCreator)
      Executes the given request in Elasticsearch default repository.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Client

        public Client()
    • Method Detail

      • executeSync

        public static <REQ,​RESP> RESP executeSync​(REQ request,
                                                        java.util.function.Function<org.elasticsearch.client.RestHighLevelClient,​ElasticsearchUtil.Client.IResponseSupplier<REQ,​RESP>> supplierCreator)
        Executes the given request in Elasticsearch default repository.
        Type Parameters:
        REQ - request type
        RESP - response type
        Parameters:
        request - the request
        supplierCreator - the supplier of a response creator
        Returns:
        the response.
        Since:
        14.0.0