Class HTTPClientPool


  • public class HTTPClientPool
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      org.slf4j.Logger logger  
    • Constructor Summary

      Constructors 
      Constructor Description
      HTTPClientPool​(int core)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.http.impl.client.CloseableHttpClient getClient()  
      org.apache.http.impl.client.CloseableHttpClient getHttpClient​(int maxTotal, int idleTimeInSeconds, javax.net.ssl.SSLContext sslContext)  
      void shutdown()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • logger

        public org.slf4j.Logger logger
    • Constructor Detail

      • HTTPClientPool

        public HTTPClientPool​(int core)
    • Method Detail

      • getClient

        public org.apache.http.impl.client.CloseableHttpClient getClient()
      • shutdown

        public void shutdown()
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getHttpClient

        public org.apache.http.impl.client.CloseableHttpClient getHttpClient​(int maxTotal,
                                                                             int idleTimeInSeconds,
                                                                             javax.net.ssl.SSLContext sslContext)