Class 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.
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • Constructor Detail

      • HttpClient5BasedR2Client

        public HttpClient5BasedR2Client()
    • 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