Beispiel #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);
 }
Beispiel #2
0
 internal InternalConnectionFactory(PoolingHttpClientConnectionManager.ConfigData
                                    configData, HttpConnectionFactory <HttpRoute, ManagedHttpClientConnection> connFactory
                                    ) : base()
 {
     this.configData = configData != null ? configData : new PoolingHttpClientConnectionManager.ConfigData
                           ();
     this.connFactory = connFactory != null ? connFactory : ManagedHttpClientConnectionFactory
                        .Instance;
 }
Beispiel #3
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);
 }