Package | Description |
---|---|
org.apache.hc.client5.http.config |
HTTP client configuration APIs.
|
Modifier and Type | Method and Description |
---|---|
static ConnectionConfig.Builder |
ConnectionConfig.copy(ConnectionConfig config) |
static ConnectionConfig.Builder |
ConnectionConfig.custom() |
ConnectionConfig.Builder |
ConnectionConfig.Builder.setConnectTimeout(long connectTimeout,
TimeUnit timeUnit) |
ConnectionConfig.Builder |
ConnectionConfig.Builder.setConnectTimeout(org.apache.hc.core5.util.Timeout connectTimeout)
Determines the timeout until a new connection is fully established.
|
ConnectionConfig.Builder |
ConnectionConfig.Builder.setSocketTimeout(int soTimeout,
TimeUnit timeUnit) |
ConnectionConfig.Builder |
ConnectionConfig.Builder.setSocketTimeout(org.apache.hc.core5.util.Timeout soTimeout)
Determines the default socket timeout value for I/O operations.
|
ConnectionConfig.Builder |
ConnectionConfig.Builder.setTimeToLive(long timeToLive,
TimeUnit timeUnit) |
ConnectionConfig.Builder |
ConnectionConfig.Builder.setTimeToLive(org.apache.hc.core5.util.TimeValue timeToLive)
Defines the total span of time connections can be kept alive or execute requests.
|
ConnectionConfig.Builder |
ConnectionConfig.Builder.setValidateAfterInactivity(long validateAfterInactivity,
TimeUnit timeUnit) |
ConnectionConfig.Builder |
ConnectionConfig.Builder.setValidateAfterInactivity(org.apache.hc.core5.util.TimeValue validateAfterInactivity)
Defines period of inactivity after which persistent connections must
be re-validated prior to being leased to the consumer.
|
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.