Class Rest5Clients

java.lang.Object
org.springframework.data.elasticsearch.client.elc.rest5_client.Rest5Clients

public final class Rest5Clients extends Object
Utility class containing the functions to create the Elasticsearch Rest5Client used from Elasticsearch 9 on.
Since:
6.0
  • Field Details

    • DEFAULT_SOCKET_TIMEOUT_MILLIS

      public static final int DEFAULT_SOCKET_TIMEOUT_MILLIS
      See Also:
    • DEFAULT_RESPONSE_TIMEOUT_MILLIS

      public static final int DEFAULT_RESPONSE_TIMEOUT_MILLIS
      See Also:
  • Method Details

    • getRest5Client

      public static co.elastic.clients.transport.rest5_client.low_level.Rest5Client getRest5Client(ClientConfiguration clientConfiguration)
      Creates a low level Rest5Client for the given configuration.
      Parameters:
      clientConfiguration - must not be null
      Returns:
      the Rest5Client
    • getRest5ClientOptionsBuilder

      public static co.elastic.clients.transport.rest5_client.Rest5ClientOptions.Builder getRest5ClientOptionsBuilder(@Nullable co.elastic.clients.transport.TransportOptions transportOptions)