org.hibernate.search.elasticsearch.client.impl

## Interface ElasticsearchClient

- All Superinterfaces:
    AutoCloseable, Closeable
  All Known Subinterfaces:
    ElasticsearchClientImplementor
  All Known Implementing Classes:
    DefaultElasticsearchClient

      public interface ElasticsearchClient
      extends Closeable

  An Elasticsearch client, allowing to perform requests to a remote cluster.
  Author:
    Yoann Rodiere

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `CompletableFuture<ElasticsearchResponse>` | `submit(ElasticsearchRequest request)`

    - ### Methods inherited from interface java.io.Closeable

      `close`

- - ### Method Detail

    - #### submit

          CompletableFuture<ElasticsearchResponse> submit(ElasticsearchRequest request)

      Parameters:
        `request` - A request to execute asynchronously
      Returns:
        The future that will ultimately hold the response (or throw an exception if an error occurred or if the request timed out).

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved