Class HttpClient5BasedR2Client
java.lang.Object
com.linkedin.venice.fastclient.transport.HttpClient5BasedR2Client
This utility class could construct a HttpClient5 based R2 Client.
TODO: get rid of R2 Client inferface completely from venice-client.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.linkedin.r2.transport.common.Client
getR2Client
(SSLContext sslContext) static com.linkedin.r2.transport.common.Client
getR2Client
(SSLContext sslContext, int ioThreadCount) static com.linkedin.r2.transport.common.Client
getR2Client
(SSLContext sslContext, int ioThreadCount, long responseTimeout)
-
Field Details
-
HTTP_METHOD_GET_LOWER_CASE
- See Also:
-
HTTP_METHOD_POST_LOWER_CASE
- See Also:
-
-
Constructor Details
-
HttpClient5BasedR2Client
public HttpClient5BasedR2Client()
-
-
Method Details
-
getR2Client
public static com.linkedin.r2.transport.common.Client getR2Client(SSLContext sslContext) throws Exception - Throws:
Exception
-
getR2Client
public static com.linkedin.r2.transport.common.Client getR2Client(SSLContext sslContext, int ioThreadCount) throws Exception - Throws:
Exception
-
getR2Client
public static com.linkedin.r2.transport.common.Client getR2Client(SSLContext sslContext, int ioThreadCount, long responseTimeout) throws Exception - Throws:
Exception
-