Class ElasticsearchUtil.Client

  • Enclosing class:
    ElasticsearchUtil

    public abstract static class ElasticsearchUtil.Client
    extends Object
    Elasticsearch client-related operations.
    Since:
    14.0.0
    Version:
    $Revision: 24477 $ $Date: 2021-04-28 11:30:36 -0300 (Wed, 28 Apr 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