Class ApacheConnector.ConnectionFactory

  • All Implemented Interfaces:
    org.apache.http.conn.HttpConnectionFactory<org.apache.http.conn.routing.HttpRoute,​org.apache.http.conn.ManagedHttpClientConnection>
    Enclosing class:
    ApacheConnector

    private static class ApacheConnector.ConnectionFactory
    extends org.apache.http.impl.conn.ManagedHttpClientConnectionFactory
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int chunkSize  
      private static java.util.concurrent.atomic.AtomicLong COUNTER  
      • Fields inherited from class org.apache.http.impl.conn.ManagedHttpClientConnectionFactory

        INSTANCE
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ConnectionFactory​(int chunkSize)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.http.conn.ManagedHttpClientConnection create​(org.apache.http.conn.routing.HttpRoute route, org.apache.http.config.ConnectionConfig config)  
      • Methods inherited from class java.lang.Object

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

      • COUNTER

        private static final java.util.concurrent.atomic.AtomicLong COUNTER
      • chunkSize

        private final int chunkSize
    • Constructor Detail

      • ConnectionFactory

        private ConnectionFactory​(int chunkSize)
    • Method Detail

      • create

        public org.apache.http.conn.ManagedHttpClientConnection create​(org.apache.http.conn.routing.HttpRoute route,
                                                                       org.apache.http.config.ConnectionConfig config)
        Specified by:
        create in interface org.apache.http.conn.HttpConnectionFactory<org.apache.http.conn.routing.HttpRoute,​org.apache.http.conn.ManagedHttpClientConnection>
        Overrides:
        create in class org.apache.http.impl.conn.ManagedHttpClientConnectionFactory