Class RestClientTransport
java.lang.Object
org.opensearch.client.transport.rest_client.RestClientTransport
- All Implemented Interfaces:
Closeable,AutoCloseable,OpenSearchTransport,Transport
Deprecated.
The
RestClientTransport is deprecated and is scheduled for removal in later versions. Please
use ApacheHttpClient5Transport instead.-
Constructor Summary
ConstructorsConstructorDescriptionRestClientTransport(org.opensearch.client.RestClient restClient, JsonpMapper mapper) Deprecated.RestClientTransport(org.opensearch.client.RestClient restClient, JsonpMapper mapper, TransportOptions options) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Deprecated.Deprecated.options()Deprecated.Default options used by this transport if none are provided inTransport.performRequest(Object, Endpoint, TransportOptions)orTransport.performRequestAsync(Object, Endpoint, TransportOptions);<RequestT,ResponseT, ErrorT>
ResponseTperformRequest(RequestT request, Endpoint<RequestT, ResponseT, ErrorT> endpoint, TransportOptions options) Deprecated.<RequestT,ResponseT, ErrorT>
CompletableFuture<ResponseT> performRequestAsync(RequestT request, Endpoint<RequestT, ResponseT, ErrorT> endpoint, TransportOptions options) Deprecated.org.opensearch.client.RestClientDeprecated.Returns the underlying low level Rest Client used by this transport.withRequestOptions(TransportOptions options) Deprecated.Copies thisRestClientTransport(org.opensearch.client.RestClient, org.opensearch.client.json.JsonpMapper)with specific request options.
-
Constructor Details
-
RestClientTransport
public RestClientTransport(org.opensearch.client.RestClient restClient, JsonpMapper mapper, @Nullable TransportOptions options) Deprecated. -
RestClientTransport
Deprecated.
-
-
Method Details
-
restClient
public org.opensearch.client.RestClient restClient()Deprecated.Returns the underlying low level Rest Client used by this transport. -
withRequestOptions
Deprecated.Copies thisRestClientTransport(org.opensearch.client.RestClient, org.opensearch.client.json.JsonpMapper)with specific request options. -
jsonpMapper
Deprecated.- Specified by:
jsonpMapperin interfaceTransport
-
options
Deprecated.Description copied from interface:TransportDefault options used by this transport if none are provided inTransport.performRequest(Object, Endpoint, TransportOptions)orTransport.performRequestAsync(Object, Endpoint, TransportOptions); -
close
Deprecated.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
performRequest
public <RequestT,ResponseT, ResponseT performRequestErrorT> (RequestT request, Endpoint<RequestT, ResponseT, throws IOExceptionErrorT> endpoint, @Nullable TransportOptions options) Deprecated.- Specified by:
performRequestin interfaceTransport- Throws:
IOException
-
performRequestAsync
public <RequestT,ResponseT, CompletableFuture<ResponseT> performRequestAsyncErrorT> (RequestT request, Endpoint<RequestT, ResponseT, ErrorT> endpoint, @Nullable TransportOptions options) Deprecated.- Specified by:
performRequestAsyncin interfaceTransport
-