Class TransportClient
java.lang.Object
com.linkedin.venice.client.store.transport.TransportClient
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
D2TransportClient
,HttpTransportClient
,InternalTransportClient
Define interfaces for TransportClient, and the target customer is the sub-classes of
AvroGenericStoreClient
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract CompletableFuture<TransportClientResponse>
If the internal client could not be used by its callback function, implementation of this function should return a new copy.abstract CompletableFuture<TransportClientResponse>
abstract void
streamPost
(String requestPath, Map<String, String> headers, byte[] requestBody, TransportClientStreamingCallback callback, int keyCount)
-
Field Details
-
HTTPS
- See Also:
-
-
Constructor Details
-
TransportClient
public TransportClient()
-
-
Method Details
-
get
-
post
-
get
public abstract CompletableFuture<TransportClientResponse> get(String requestPath, Map<String, String> headers) -
post
public abstract CompletableFuture<TransportClientResponse> post(String requestPath, Map<String, String> headers, byte[] requestBody) -
streamPost
public abstract void streamPost(String requestPath, Map<String, String> headers, byte[] requestBody, TransportClientStreamingCallback callback, int keyCount) -
getCopyIfNotUsableInCallback
If the internal client could not be used by its callback function, implementation of this function should return a new copy. The default implementation is to return itself.- Returns:
-