Class HttpClient5BasedR2Client
- java.lang.Object
-
- com.linkedin.venice.fastclient.transport.HttpClient5BasedR2Client
-
public class HttpClient5BasedR2Client extends java.lang.Object
This utility class could construct a HttpClient5 based R2 Client. TODO: get rid of R2 Client inferface completely from venice-client.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
HTTP_METHOD_GET_LOWER_CASE
static java.lang.String
HTTP_METHOD_POST_LOWER_CASE
-
Constructor Summary
Constructors Constructor Description HttpClient5BasedR2Client()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.linkedin.r2.transport.common.Client
getR2Client(javax.net.ssl.SSLContext sslContext)
static com.linkedin.r2.transport.common.Client
getR2Client(javax.net.ssl.SSLContext sslContext, int ioThreadCount)
static com.linkedin.r2.transport.common.Client
getR2Client(javax.net.ssl.SSLContext sslContext, int ioThreadCount, long responseTimeout)
-
-
-
Field Detail
-
HTTP_METHOD_GET_LOWER_CASE
public static final java.lang.String HTTP_METHOD_GET_LOWER_CASE
- See Also:
- Constant Field Values
-
HTTP_METHOD_POST_LOWER_CASE
public static final java.lang.String HTTP_METHOD_POST_LOWER_CASE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getR2Client
public static com.linkedin.r2.transport.common.Client getR2Client(javax.net.ssl.SSLContext sslContext) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getR2Client
public static com.linkedin.r2.transport.common.Client getR2Client(javax.net.ssl.SSLContext sslContext, int ioThreadCount) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getR2Client
public static com.linkedin.r2.transport.common.Client getR2Client(javax.net.ssl.SSLContext sslContext, int ioThreadCount, long responseTimeout) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-