Class ElasticsearchUtil.Client

  • Enclosing class:
    ElasticsearchUtil

    public abstract static class ElasticsearchUtil.Client
    extends 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 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