index.asciidoc 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. :mainid: java-rest-high
  2. [id="{mainid}"]
  3. = Java High Level REST Client
  4. [partintro]
  5. --
  6. added[6.0.0-beta1]
  7. The Java High Level REST Client works on top of the Java Low Level REST client.
  8. Its main goal is to expose API specific methods, that accept request objects as
  9. an argument and return response objects, so that request marshalling and
  10. response un-marshalling is handled by the client itself.
  11. Each API can be called synchronously or asynchronously. The synchronous
  12. methods return a response object, while the asynchronous methods, whose names
  13. end with the `async` suffix, require a listener argument that is notified
  14. (on the thread pool managed by the low level client) once a response or an
  15. error is received.
  16. The Java High Level REST Client depends on the Elasticsearch core project.
  17. It accepts the same request arguments as the `TransportClient` and returns
  18. the same response objects.
  19. --
  20. :doc-tests: {elasticsearch-root}/client/rest-high-level/src/test/java/org/elasticsearch/client/documentation
  21. :hlrc-tests: {elasticsearch-root}/client/rest-high-level/src/test/java/org/elasticsearch/client
  22. include::getting-started.asciidoc[]
  23. include::supported-apis.asciidoc[]
  24. include::java-builders.asciidoc[]
  25. include::migration.asciidoc[]
  26. include::../license.asciidoc[]
  27. :doc-tests!:
  28. :mainid!: