public DefaultChannelPool(AsyncHttpClientConfig config, Timer hashedWheelTimer) { this(config.getPooledConnectionIdleTimeout(),// config.getConnectionTTL(),// config.isAllowPoolingSslConnections(),// hashedWheelTimer); }
readTimeout = prototype.getReadTimeout(); maxConnectionsPerHost = prototype.getMaxConnectionsPerHost(); connectionTTL = prototype.getConnectionTTL(); maxRedirects = prototype.getMaxRedirects(); maxConnections = prototype.getMaxConnections();
public DefaultChannelPool(AsyncHttpClientConfig config, Timer hashedWheelTimer) { this(config.getPooledConnectionIdleTimeout(),// config.getConnectionTTL(),// config.isAllowPoolingSslConnections(),// hashedWheelTimer); }
public GrizzlyConnectionPool(final AsyncHttpClientConfig config) { cacheSSLConnections = config.isAllowPoolingSslConnections(); timeout = config.getPooledConnectionIdleTimeout(); maxConnectionLifeTime = config.getConnectionTTL(); maxConnectionsPerHost = config.getMaxConnectionsPerHost(); maxConnections = config.getMaxConnections(); unlimitedConnections = (maxConnections == -1); delayedExecutor = new DelayedExecutor(Executors.newSingleThreadExecutor(), this); delayedExecutor.start(); ownsDelayedExecutor = true; }
private void verifyDefaultUnderlyingClientConfig(AsyncHttpClientHelper instance) { AsyncHttpClientConfig config = instance.asyncHttpClient.getConfig(); assertThat(config.isAllowPoolingConnections()).isTrue(); assertThat(config.getMaxRequestRetry()).isEqualTo(0); assertThat(config.getRequestTimeout()).isEqualTo(DEFAULT_REQUEST_TIMEOUT_MILLIS); assertThat(config.getConnectionTTL()).isEqualTo(DEFAULT_POOLED_DOWNSTREAM_CONNECTION_TTL_MILLIS); assertThat(Whitebox.getInternalState(instance.asyncHttpClient, "signatureCalculator")).isNull(); }
.keepAliveCheckInterval(1, TimeUnit.SECONDS) .connectorHandler(defaultConnectionHandler) .connectionTTL(config.getConnectionTTL(), TimeUnit.MILLISECONDS) .failFastWhenMaxSizeReached(true);
log.debug("accept any certificate: {}", config.isAcceptAnyCertificate()); log.debug("follows redirect: {}", config.isFollowRedirect()); log.debug("pooled connection TTL: {}", config.getConnectionTTL()); log.debug("pooled connection idle timeout: {}", config.getPooledConnectionIdleTimeout()); log.debug("pooling connections: {}", config.isAllowPoolingConnections());
readTimeout = prototype.getReadTimeout(); maxConnectionsPerHost = prototype.getMaxConnectionsPerHost(); connectionTTL = prototype.getConnectionTTL(); maxRedirects = prototype.getMaxRedirects(); maxConnections = prototype.getMaxConnections();
readTimeout = prototype.getReadTimeout(); maxConnectionsPerHost = prototype.getMaxConnectionsPerHost(); connectionTTL = prototype.getConnectionTTL(); maxRedirects = prototype.getMaxRedirects(); maxConnections = prototype.getMaxConnections();
readTimeout = prototype.getReadTimeout(); maxConnectionsPerHost = prototype.getMaxConnectionsPerHost(); connectionTTL = prototype.getConnectionTTL(); maxRedirects = prototype.getMaxRedirects(); maxConnections = prototype.getMaxConnections();
.keepAliveCheckInterval(1, TimeUnit.SECONDS) .connectorHandler(defaultConnectionHandler) .connectionTTL(config.getConnectionTTL(), TimeUnit.MILLISECONDS) .failFastWhenMaxSizeReached(true);
.keepAliveCheckInterval(1, TimeUnit.SECONDS) .connectorHandler(defaultConnectionHandler) .connectionTTL(config.getConnectionTTL(), TimeUnit.MILLISECONDS) .failFastWhenMaxSizeReached(true);