Package org.opensearch.client.transport
Interface Transport
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Subinterfaces:
OpenSearchTransport
- All Known Implementing Classes:
ApacheHttpClient5Transport,AwsSdk2Transport,RestClientTransport
The transport layer that allows
ApiClients to send requests.-
Method Summary
Modifier and TypeMethodDescriptionoptions()Default options used by this transport if none are provided inperformRequest(Object, Endpoint, TransportOptions)orperformRequestAsync(Object, Endpoint, TransportOptions);<RequestT,ResponseT, ErrorT>
ResponseTperformRequest(RequestT request, Endpoint<RequestT, ResponseT, ErrorT> endpoint, TransportOptions options) <RequestT,ResponseT, ErrorT>
CompletableFuture<ResponseT> performRequestAsync(RequestT request, Endpoint<RequestT, ResponseT, ErrorT> endpoint, TransportOptions options)
-
Method Details
-
performRequest
<RequestT,ResponseT, ResponseT performRequestErrorT> (RequestT request, Endpoint<RequestT, ResponseT, throws IOExceptionErrorT> endpoint, @Nullable TransportOptions options) - Throws:
IOException
-
performRequestAsync
<RequestT,ResponseT, CompletableFuture<ResponseT> performRequestAsyncErrorT> (RequestT request, Endpoint<RequestT, ResponseT, ErrorT> endpoint, @Nullable TransportOptions options) -
jsonpMapper
JsonpMapper jsonpMapper() -
options
TransportOptions options()Default options used by this transport if none are provided inperformRequest(Object, Endpoint, TransportOptions)orperformRequestAsync(Object, Endpoint, TransportOptions);
-