Class ElasticsearchClientImpl
- java.lang.Object
-
- org.hibernate.search.backend.elasticsearch.client.impl.ElasticsearchClientImpl
-
- All Implemented Interfaces:
AutoCloseable,ElasticsearchClient,ElasticsearchClientImplementor
public class ElasticsearchClientImpl extends Object implements ElasticsearchClientImplementor
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()CompletableFuture<ElasticsearchResponse>submit(ElasticsearchRequest request)<T> Tunwrap(Class<T> clientClass)Unwrap the client to some implementation-specific type.
-
-
-
Method Detail
-
submit
public CompletableFuture<ElasticsearchResponse> submit(ElasticsearchRequest request)
- Specified by:
submitin interfaceElasticsearchClient- 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).
-
unwrap
public <T> T unwrap(Class<T> clientClass)
Description copied from interface:ElasticsearchClientUnwrap the client to some implementation-specific type.- Specified by:
unwrapin interfaceElasticsearchClient- Type Parameters:
T- The expected client type- Parameters:
clientClass- TheClassrepresenting the expected client type- Returns:
- The unwrapped client.
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceElasticsearchClientImplementor
-
-