Class R2TransportClient
java.lang.Object
com.linkedin.venice.client.store.transport.TransportClient
com.linkedin.venice.fastclient.transport.InternalTransportClient
com.linkedin.venice.fastclient.transport.R2TransportClient
- All Implemented Interfaces:
Closeable
,AutoCloseable
R2 based Transport Client Interface.
So far, this class doesn't do anything special about the connection management, such as connection pool (size),
and connection warming and so on, and we will rely on the features offered by R2.
If we notice anything specific required to be implemented outside of R2, we will improve the implementation here.
-
Nested Class Summary
-
Field Summary
Fields inherited from class com.linkedin.venice.client.store.transport.TransportClient
HTTPS
-
Constructor Summary
-
Method Summary
Methods inherited from class com.linkedin.venice.fastclient.transport.InternalTransportClient
streamPost
Methods inherited from class com.linkedin.venice.client.store.transport.TransportClient
get, getCopyIfNotUsableInCallback, post
-
Constructor Details
-
R2TransportClient
public R2TransportClient(com.linkedin.r2.transport.common.Client r2Client)
-
-
Method Details
-
get
public CompletableFuture<TransportClientResponse> get(String requestUrl, Map<String, String> headers) - Specified by:
get
in classTransportClient
-
post
public CompletableFuture<TransportClientResponse> post(String requestUrl, Map<String, String> headers, byte[] requestBody) - Specified by:
post
in classTransportClient
-
close
- Throws:
IOException
-