Interface RestClients.ElasticsearchRestClient

All Superinterfaces:
AutoCloseable, Closeable
Enclosing class:
RestClients
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface RestClients.ElasticsearchRestClient extends Closeable
Author:
Christoph Strobl
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
     
    default org.elasticsearch.client.RestClient
    Apply the configuration to create a RestClient.
    org.elasticsearch.client.RestHighLevelClient
    Apply the configuration to create a RestHighLevelClient.
  • Method Details

    • rest

      org.elasticsearch.client.RestHighLevelClient rest()
      Apply the configuration to create a RestHighLevelClient.
      Returns:
      new instance of RestHighLevelClient.
    • lowLevelRest

      default org.elasticsearch.client.RestClient lowLevelRest()
      Apply the configuration to create a RestClient.
      Returns:
      new instance of RestClient.
    • close

      default void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException