Ejemplo n.º 1
0
 internal PoolingHttpClientConnectionManager(CPool pool, Lookup <ConnectionSocketFactory
                                                                 > socketFactoryRegistry, SchemePortResolver schemePortResolver, DnsResolver dnsResolver
                                             ) : base()
 {
     this.configData         = new PoolingHttpClientConnectionManager.ConfigData();
     this.pool               = pool;
     this.connectionOperator = new HttpClientConnectionOperator(socketFactoryRegistry,
                                                                schemePortResolver, dnsResolver);
 }
Ejemplo n.º 2
0
 public PoolingHttpClientConnectionManager(Registry <ConnectionSocketFactory> socketFactoryRegistry
                                           , HttpConnectionFactory <HttpRoute, ManagedHttpClientConnection> connFactory, SchemePortResolver
                                           schemePortResolver, DnsResolver dnsResolver, long timeToLive, TimeUnit tunit) :
     base()
 {
     this.configData = new PoolingHttpClientConnectionManager.ConfigData();
     this.pool       = new CPool(new PoolingHttpClientConnectionManager.InternalConnectionFactory
                                     (this.configData, connFactory), 2, 20, timeToLive, tunit);
     this.connectionOperator = new HttpClientConnectionOperator(socketFactoryRegistry,
                                                                schemePortResolver, dnsResolver);
 }
 public BasicHttpClientConnectionManager(Lookup <ConnectionSocketFactory> socketFactoryRegistry
                                         , HttpConnectionFactory <HttpRoute, ManagedHttpClientConnection> connFactory, SchemePortResolver
                                         schemePortResolver, DnsResolver dnsResolver) : base()
 {
     this.connectionOperator = new HttpClientConnectionOperator(socketFactoryRegistry,
                                                                schemePortResolver, dnsResolver);
     this.connFactory = connFactory != null ? connFactory : ManagedHttpClientConnectionFactory
                        .Instance;
     this.expiry       = long.MaxValue;
     this.socketConfig = SocketConfig.Default;
     this.connConfig   = ConnectionConfig.Default;
 }