Package org.opensearch.client.transport
Interface Transport
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable
- All Known Subinterfaces:
OpenSearchTransport
- All Known Implementing Classes:
ApacheHttpClient5Transport,AwsSdk2Transport,RestClientTransport
public interface Transport extends java.io.CloseableThe transport layer that allowsApiClients to send requests.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JsonpMapperjsonpMapper()TransportOptionsoptions()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>
java.util.concurrent.CompletableFuture<ResponseT>performRequestAsync(RequestT request, Endpoint<RequestT,ResponseT,ErrorT> endpoint, TransportOptions options)
-
-
-
Method Detail
-
performRequest
<RequestT,ResponseT,ErrorT> ResponseT performRequest(RequestT request, Endpoint<RequestT,ResponseT,ErrorT> endpoint, @Nullable TransportOptions options) throws java.io.IOException- Throws:
java.io.IOException
-
performRequestAsync
<RequestT,ResponseT,ErrorT> java.util.concurrent.CompletableFuture<ResponseT> performRequestAsync(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);
-
-