Class ElasticsearchClientImpl
java.lang.Object
org.hibernate.search.backend.elasticsearch.client.impl.ElasticsearchClientImpl
- All Implemented Interfaces:
AutoCloseable,ElasticsearchClient,ElasticsearchClientImplementor
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()submit(ElasticsearchRequest request) <T> TUnwrap the client to some implementation-specific type.
-
Method Details
-
submit
- 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
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
-