Package org.eclipse.rdf4j.sail.elasticsearchstore

## Class UserProvidedClientProvider

- java.lang.Object
- - org.eclipse.rdf4j.sail.elasticsearchstore.UserProvidedClientProvider

- All Implemented Interfaces:
    `AutoCloseable`

      public class UserProvidedClientProvider
      extends Object

  Used by the user to provide an Elasticsearch Client to the ElasticsearchStore instead of providing host, port, cluster information. The client provided by the user is not closed by the ElasticsearchStore.
  Author:
    Håvard Mikkelsen Ottestad

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `UserProvidedClientProvider​(org.elasticsearch.client.Client client)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `close()` |
    `org.elasticsearch.client.Client` | `getClient()` |
    `boolean` | `isClosed()` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### UserProvidedClientProvider

          public UserProvidedClientProvider​(org.elasticsearch.client.Client client)

  - ### Method Detail

    - #### getClient

          public org.elasticsearch.client.Client getClient()

    - #### isClosed

          public boolean isClosed()

    - #### close

          public void close()
                     throws Exception

      Specified by:
        `close` in interface `AutoCloseable`
      Throws:
        `Exception`