| 程序包 | 说明 |
|---|---|
| com.aliyun.httpcomponent.httpclient.implementation | |
| org.apache.hc.client5.http |
Client component APIs common to all client transports
such as connection route information and resolution
as well as common HTTP method definitions and
exception classes.
|
| org.apache.hc.client5.http.async |
HTTP client APIs based on the asynchronous, event driven I/O model.
|
| org.apache.hc.client5.http.classic |
HTTP client APIs based on the classic (blocking) I/O model.
|
| org.apache.hc.client5.http.config |
HTTP client configuration APIs.
|
| org.apache.hc.client5.http.impl | |
| org.apache.hc.client5.http.impl.async |
Asynchronous HTTP client API implementation that supports both
HTTP/2 and HTTP/1.1 transport.
|
| org.apache.hc.client5.http.impl.classic |
Classic HTTP client API implementation that supports HTTP/1.1 transport
only.
|
| org.apache.hc.client5.http.impl.io |
Client connection management functions based the classic
connection management APIs.
|
| org.apache.hc.client5.http.impl.nio |
Client connection management functions based the asynchronous
connection management APIs.
|
| org.apache.hc.client5.http.io |
Connection management APIs based on the classic (blocking) I/O model.
|
| org.apache.hc.client5.http.nio |
Connection management APIs based on the asynchronous I/O model.
|
| org.apache.hc.client5.http.socket |
Client connection socket APIs.
|
| org.apache.hc.client5.http.ssl |
Client TLS/SSL support.
|
| org.apache.hc.core5.http.impl.bootstrap |
HTTP/1.1 requester and server bootstrap.
|
| org.apache.hc.core5.http.io |
Core HTTP transport APIs based on the classic (blocking) I/O model.
|
| org.apache.hc.core5.http2.impl.nio.bootstrap |
HTTP/2 capable requester and server bootstrap.
|
| org.apache.hc.core5.http2.nio.pool |
HTTP/2 specific pool component APIs.
|
| org.apache.hc.core5.pool |
Client side connection pool component APIs.
|
| org.apache.hc.core5.reactor |
Event driven network communication APIs and components loosely based on
Doug Lea's
reactor pattern.
|
| org.apache.hc.core5.util |
Core utility classes.
|
| 限定符和类型 | 方法和说明 |
|---|---|
TimeValue |
SdkConnectionKeepAliveStrategy.getKeepAliveDuration(HttpResponse response,
HttpContext context) |
| 限定符和类型 | 方法和说明 |
|---|---|
TimeValue |
ConnectionKeepAliveStrategy.getKeepAliveDuration(HttpResponse response,
HttpContext context)
Returns the duration of time which this connection can be safely kept
idle.
|
default TimeValue |
HttpRequestRetryStrategy.getRetryInterval(HttpRequest request,
IOException exception,
int execCount,
HttpContext context)
Determines the retry interval between subsequent retries.
|
TimeValue |
HttpRequestRetryStrategy.getRetryInterval(HttpResponse response,
int execCount,
HttpContext context)
Determines the retry interval between subsequent retries.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
AsyncExecRuntime.markConnectionReusable(Object state,
TimeValue validityTime)
Marks the connection as potentially re-usable for the given period of time
and also marks it as stateful if the state representation is given.
|
void |
AsyncExecChain.Scheduler.scheduleExecution(HttpRequest request,
AsyncEntityProducer entityProducer,
AsyncExecChain.Scope scope,
AsyncExecCallback asyncExecCallback,
TimeValue delay)
Schedules request re-execution immediately or after a delay.
|
default void |
AsyncExecChain.Scheduler.scheduleExecution(HttpRequest request,
AsyncEntityProducer entityProducer,
AsyncExecChain.Scope scope,
AsyncExecChain chain,
AsyncExecCallback asyncExecCallback,
TimeValue delay)
Schedules request re-execution of the given execution chain immediately or
after a delay.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
ExecRuntime.markConnectionReusable(Object state,
TimeValue validityTime)
Marks the connection as potentially re-usable for the given period of time
and also marks it as stateful if the state representation is given.
|
| 限定符和类型 | 方法和说明 |
|---|---|
TimeValue |
RequestConfig.getConnectionKeepAlive() |
TimeValue |
ConnectionConfig.getTimeToLive() |
TimeValue |
ConnectionConfig.getValidateAfterInactivity() |
| 限定符和类型 | 方法和说明 |
|---|---|
RequestConfig.Builder |
RequestConfig.Builder.setConnectionKeepAlive(TimeValue connectionKeepAlive)
Determines the default of value of connection keep-alive time period when not
explicitly communicated by the origin server with a
Keep-Alive response
header. |
ConnectionConfig.Builder |
ConnectionConfig.Builder.setTimeToLive(TimeValue timeToLive)
Defines the total span of time connections can be kept alive or execute requests.
|
ConnectionConfig.Builder |
ConnectionConfig.Builder.setValidateAfterInactivity(TimeValue validateAfterInactivity)
Defines period of inactivity after which persistent connections must
be re-validated prior to being leased to the consumer.
|
| 限定符和类型 | 方法和说明 |
|---|---|
TimeValue |
DefaultConnectionKeepAliveStrategy.getKeepAliveDuration(HttpResponse response,
HttpContext context) |
TimeValue |
DefaultHttpRequestRetryStrategy.getRetryInterval(HttpResponse response,
int execCount,
HttpContext context) |
| 构造器和说明 |
|---|
DefaultHttpRequestRetryStrategy(int maxRetries,
TimeValue defaultRetryInterval)
Create the HTTP request retry strategy using the following list of
non-retriable I/O exception classes:
InterruptedIOException UnknownHostException ConnectException ConnectionClosedException NoRouteToHostException SSLException and retriable HTTP status codes: SC_TOO_MANY_REQUESTS (429) SC_SERVICE_UNAVAILABLE (503) |
DefaultHttpRequestRetryStrategy(int maxRetries,
TimeValue defaultRetryInterval,
Collection<Class<? extends IOException>> clazzes,
Collection<Integer> codes) |
IdleConnectionEvictor(ConnPoolControl<?> connectionManager,
ThreadFactory threadFactory,
TimeValue sleepTime,
TimeValue maxIdleTime) |
IdleConnectionEvictor(ConnPoolControl<?> connectionManager,
TimeValue maxIdleTime) |
IdleConnectionEvictor(ConnPoolControl<?> connectionManager,
TimeValue sleepTime,
TimeValue maxIdleTime) |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract void |
CloseableHttpAsyncClient.awaitShutdown(TimeValue waitTime) |
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.evictIdleConnections(TimeValue maxIdleTime)
Makes this instance of HttpClient proactively evict idle connections from the
connection pool using a background thread.
|
H2AsyncClientBuilder |
H2AsyncClientBuilder.evictIdleConnections(TimeValue maxIdleTime)
Makes this instance of HttpClient proactively evict idle connections from the
connection pool using a background thread.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected AtomicReference<TimeValue> |
AbstractBackoff.getCoolDown()
Returns the cool down period between backoff and probe operations as an AtomicReference of TimeValue.
|
| 限定符和类型 | 方法和说明 |
|---|---|
HttpClientBuilder |
HttpClientBuilder.evictIdleConnections(TimeValue maxIdleTime)
Makes this instance of HttpClient proactively evict idle connections from the
connection pool using a background thread.
|
void |
AbstractBackoff.setCoolDown(TimeValue coolDown)
Sets the cool-down time value for adjustments in pool sizes for a given host.
|
| 限定符和类型 | 方法和说明 |
|---|---|
TimeValue |
PoolingHttpClientConnectionManager.getValidateAfterInactivity()
|
TimeValue |
BasicHttpClientConnectionManager.getValidateAfterInactivity()
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
PoolingHttpClientConnectionManager.closeIdle(TimeValue idleTime) |
void |
BasicHttpClientConnectionManager.closeIdle(TimeValue idleTime) |
void |
PoolingHttpClientConnectionManager.connect(ConnectionEndpoint endpoint,
TimeValue timeout,
HttpContext context) |
void |
BasicHttpClientConnectionManager.connect(ConnectionEndpoint endpoint,
TimeValue timeout,
HttpContext context) |
void |
DefaultHttpClientConnectionOperator.connect(ManagedHttpClientConnection conn,
HttpHost host,
InetSocketAddress localAddress,
TimeValue connectTimeout,
SocketConfig socketConfig,
HttpContext context) |
void |
PoolingHttpClientConnectionManager.release(ConnectionEndpoint endpoint,
Object state,
TimeValue keepAlive) |
void |
BasicHttpClientConnectionManager.release(ConnectionEndpoint endpoint,
Object state,
TimeValue keepAlive) |
PoolingHttpClientConnectionManagerBuilder |
PoolingHttpClientConnectionManagerBuilder.setConnectionTimeToLive(TimeValue timeToLive)
|
PoolingHttpClientConnectionManagerBuilder |
PoolingHttpClientConnectionManagerBuilder.setValidateAfterInactivity(TimeValue validateAfterInactivity)
|
void |
PoolingHttpClientConnectionManager.setValidateAfterInactivity(TimeValue validateAfterInactivity)
|
void |
BasicHttpClientConnectionManager.setValidateAfterInactivity(TimeValue validateAfterInactivity)
|
| 限定符和类型 | 方法和说明 |
|---|---|
TimeValue |
PoolingAsyncClientConnectionManager.getValidateAfterInactivity()
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
PoolingAsyncClientConnectionManager.closeIdle(TimeValue idletime) |
void |
PoolingAsyncClientConnectionManager.release(AsyncConnectionEndpoint endpoint,
Object state,
TimeValue keepAlive) |
PoolingAsyncClientConnectionManagerBuilder |
PoolingAsyncClientConnectionManagerBuilder.setConnectionTimeToLive(TimeValue timeToLive)
|
PoolingAsyncClientConnectionManagerBuilder |
PoolingAsyncClientConnectionManagerBuilder.setValidateAfterInactivity(TimeValue validateAfterInactivity)
|
void |
PoolingAsyncClientConnectionManager.setValidateAfterInactivity(TimeValue validateAfterInactivity)
|
| 构造器和说明 |
|---|
PoolingAsyncClientConnectionManager(AsyncClientConnectionOperator connectionOperator,
PoolConcurrencyPolicy poolConcurrencyPolicy,
PoolReusePolicy poolReusePolicy,
TimeValue timeToLive) |
PoolingAsyncClientConnectionManager(Lookup<TlsStrategy> tlsStrategyLookup,
PoolConcurrencyPolicy poolConcurrencyPolicy,
PoolReusePolicy poolReusePolicy,
TimeValue timeToLive) |
PoolingAsyncClientConnectionManager(Lookup<TlsStrategy> tlsStrategyLookup,
PoolConcurrencyPolicy poolConcurrencyPolicy,
PoolReusePolicy poolReusePolicy,
TimeValue timeToLive,
SchemePortResolver schemePortResolver,
DnsResolver dnsResolver) |
PoolingAsyncClientConnectionManager(Lookup<TlsStrategy> tlsStrategyLookup,
PoolConcurrencyPolicy poolConcurrencyPolicy,
TimeValue timeToLive) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
HttpClientConnectionManager.connect(ConnectionEndpoint endpoint,
TimeValue connectTimeout,
HttpContext context)
Connects the endpoint to the initial hop (connection target in case
of a direct route or to the first proxy hop in case of a route via a proxy
or multiple proxies).
|
void |
HttpClientConnectionOperator.connect(ManagedHttpClientConnection conn,
HttpHost host,
InetSocketAddress localAddress,
TimeValue connectTimeout,
SocketConfig socketConfig,
HttpContext context)
Connect the given managed connection to the remote endpoint.
|
void |
HttpClientConnectionManager.release(ConnectionEndpoint endpoint,
Object newState,
TimeValue validDuration)
Releases the endpoint back to the manager making it potentially
re-usable by other consumers.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
AsyncClientConnectionManager.release(AsyncConnectionEndpoint endpoint,
Object newState,
TimeValue validDuration)
Releases the endpoint back to the manager making it potentially
re-usable by other consumers.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Socket |
PlainConnectionSocketFactory.connectSocket(TimeValue connectTimeout,
Socket socket,
HttpHost host,
InetSocketAddress remoteAddress,
InetSocketAddress localAddress,
HttpContext context) |
Socket |
ConnectionSocketFactory.connectSocket(TimeValue connectTimeout,
Socket socket,
HttpHost host,
InetSocketAddress remoteAddress,
InetSocketAddress localAddress,
HttpContext context)
Connects the socket to the target host with the given resolved remote address.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Socket |
SSLConnectionSocketFactory.connectSocket(TimeValue connectTimeout,
Socket socket,
HttpHost host,
InetSocketAddress remoteAddress,
InetSocketAddress localAddress,
HttpContext context) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
AsyncRequester.awaitShutdown(TimeValue waitTime) |
void |
AsyncServer.awaitShutdown(TimeValue waitTime) |
void |
HttpServer.awaitTermination(TimeValue waitTime) |
void |
HttpRequester.closeIdle(TimeValue idleTime) |
void |
HttpAsyncRequester.closeIdle(TimeValue idleTime) |
| 限定符和类型 | 方法和说明 |
|---|---|
TimeValue |
SocketConfig.getSoLinger() |
| 限定符和类型 | 方法和说明 |
|---|---|
SocketConfig.Builder |
SocketConfig.Builder.setSoLinger(TimeValue soLinger)
Determines the default value of the
SocketOptions.SO_LINGER parameter
for newly created sockets. |
| 限定符和类型 | 方法和说明 |
|---|---|
TimeValue |
H2MultiplexingRequester.getValidateAfterInactivity() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
H2MultiplexingRequester.closeIdle(TimeValue idleTime) |
H2RequesterBootstrap |
H2RequesterBootstrap.setTimeToLive(TimeValue timeToLive) |
void |
H2MultiplexingRequester.setValidateAfterInactivity(TimeValue timeValue) |
| 限定符和类型 | 方法和说明 |
|---|---|
TimeValue |
H2ConnPool.getValidateAfterInactivity() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
H2ConnPool.setValidateAfterInactivity(TimeValue timeValue) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
LaxConnPool.closeIdle(TimeValue idleTime) |
void |
StrictConnPool.closeIdle(TimeValue idleTime) |
void |
ConnPoolControl.closeIdle(TimeValue idleTime) |
void |
PoolEntry.updateExpiry(TimeValue expiryTime) |
| 构造器和说明 |
|---|
LaxConnPool(int defaultMaxPerRoute,
TimeValue timeToLive,
PoolReusePolicy policy,
ConnPoolListener<T> connPoolListener) |
LaxConnPool(int defaultMaxPerRoute,
TimeValue timeToLive,
PoolReusePolicy policy,
DisposalCallback<C> disposalCallback,
ConnPoolListener<T> connPoolListener) |
PoolEntry(T route,
TimeValue timeToLive)
Creates new
PoolEntry instance. |
PoolEntry(T route,
TimeValue timeToLive,
DisposalCallback<C> disposalCallback)
Creates new
PoolEntry instance. |
StrictConnPool(int defaultMaxPerRoute,
int maxTotal,
TimeValue timeToLive,
PoolReusePolicy policy,
ConnPoolListener<T> connPoolListener) |
StrictConnPool(int defaultMaxPerRoute,
int maxTotal,
TimeValue timeToLive,
PoolReusePolicy policy,
DisposalCallback<C> disposalCallback,
ConnPoolListener<T> connPoolListener) |
| 限定符和类型 | 方法和说明 |
|---|---|
TimeValue |
IOReactorConfig.getSelectInterval() |
TimeValue |
IOReactorConfig.getSoLinger() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
DefaultConnectingIOReactor.awaitShutdown(TimeValue waitTime) |
void |
DefaultListeningIOReactor.awaitShutdown(TimeValue waitTime) |
void |
IOReactor.awaitShutdown(TimeValue waitTime)
Blocks for the given period of time in milliseconds awaiting
the completion of the reactor shutdown.
|
void |
AbstractIOSessionPool.closeIdle(TimeValue idleTime) |
IOReactorConfig.Builder |
IOReactorConfig.Builder.setSelectInterval(TimeValue selectInterval)
Determines time interval at which the I/O reactor wakes up to check for timed out sessions
and session requests.
|
IOReactorConfig.Builder |
IOReactorConfig.Builder.setSoLinger(TimeValue soLinger)
Determines the default value of the
SocketOptions.SO_LINGER parameter
for newly created sockets. |
| 限定符和类型 | 类和说明 |
|---|---|
class |
Timeout
Represents a timeout value as a non-negative
long time and TimeUnit. |
| 限定符和类型 | 字段和说明 |
|---|---|
static TimeValue |
TimeValue.MAX_VALUE
A constant holding the maximum value a
TimeValue can have: Long.MAX_VALUE days. |
static TimeValue |
TimeValue.NEG_ONE_MILLISECOND
A negative one millisecond
TimeValue. |
static TimeValue |
TimeValue.NEG_ONE_SECOND
A negative one second
TimeValue. |
static TimeValue |
TimeValue.ZERO_MILLISECONDS
A zero milliseconds
TimeValue. |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T extends TimeValue> |
TimeValue.defaultsTo(T timeValue,
T defaultValue)
Returns the given
timeValue if it is not null, if null then returns the given
defaultValue. |
static <T extends TimeValue> |
Args.positive(T timeValue,
String name) |
| 限定符和类型 | 方法和说明 |
|---|---|
static TimeValue |
TimeValue.defaultsToNegativeOneMillisecond(TimeValue timeValue)
|
static TimeValue |
TimeValue.defaultsToNegativeOneSecond(TimeValue timeValue)
|
static TimeValue |
TimeValue.defaultsToZeroMilliseconds(TimeValue timeValue)
|
TimeValue |
TimeValue.divide(long divisor)
Returns a TimeValue whose value is
(this / divisor). |
TimeValue |
TimeValue.divide(long divisor,
TimeUnit targetTimeUnit)
Returns a TimeValue whose value is
(this / divisor). |
TimeValue |
TimeValue.min(TimeValue other) |
static TimeValue |
TimeValue.of(Duration duration)
Creates a TimeValue from a Duration.
|
static TimeValue |
TimeValue.of(long duration,
TimeUnit timeUnit)
Creates a TimeValue.
|
static TimeValue |
TimeValue.ofDays(long days) |
static TimeValue |
TimeValue.ofHours(long hours) |
static TimeValue |
TimeValue.ofMicroseconds(long microseconds) |
static TimeValue |
TimeValue.ofMilliseconds(long millis) |
static TimeValue |
TimeValue.ofMinutes(long minutes) |
static TimeValue |
TimeValue.ofNanoseconds(long nanoseconds) |
static TimeValue |
TimeValue.ofSeconds(long seconds) |
static TimeValue |
TimeValue.parse(String value)
Parses a TimeValue in the format
<Long><SPACE><TimeUnit>, for example "1200 MILLISECONDS". |
TimeValue |
Deadline.remainingTimeValue()
Returns the difference as a TimeValue between the deadline and now.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Deadline |
Deadline.calculate(long timeMillis,
TimeValue timeValue)
Calculates a deadline with a given time in milliseconds plus a given time value.
|
static Deadline |
Deadline.calculate(TimeValue timeValue)
Calculates a deadline from now plus a given time value.
|
int |
TimeValue.compareTo(TimeValue other) |
static TimeValue |
TimeValue.defaultsToNegativeOneMillisecond(TimeValue timeValue)
|
static TimeValue |
TimeValue.defaultsToNegativeOneSecond(TimeValue timeValue)
|
static TimeValue |
TimeValue.defaultsToZeroMilliseconds(TimeValue timeValue)
|
static boolean |
TimeValue.isNonNegative(TimeValue timeValue) |
static boolean |
TimeValue.isPositive(TimeValue timeValue) |
TimeValue |
TimeValue.min(TimeValue other) |
Copyright © 2023. All rights reserved.