Package | Description |
---|---|
org.apache.hc.core5.benchmark |
Apache Bench (AB) clone based on HttpCore.
|
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.testing | |
org.apache.hc.core5.util |
Core utility classes.
|
Modifier and Type | Method and Description |
---|---|
TimeValue |
BenchmarkConfig.getTimeLimit() |
Modifier and Type | Method and Description |
---|---|
BenchmarkConfig.Builder |
BenchmarkConfig.Builder.setTimeLimit(TimeValue timeLimit) |
Modifier and Type | Method and Description |
---|---|
void |
AsyncServer.awaitShutdown(TimeValue waitTime) |
void |
AsyncRequester.awaitShutdown(TimeValue waitTime) |
void |
HttpServer.awaitTermination(TimeValue waitTime) |
void |
HttpRequester.closeIdle(TimeValue idleTime) |
void |
HttpAsyncRequester.closeIdle(TimeValue idleTime) |
Modifier and Type | Method and Description |
---|---|
TimeValue |
SocketConfig.getSoLinger() |
Modifier and Type | Method and Description |
---|---|
SocketConfig.Builder |
SocketConfig.Builder.setSoLinger(TimeValue soLinger)
Determines the default value of the
SocketOptions.SO_LINGER parameter
for newly created sockets. |
Modifier and Type | Method and Description |
---|---|
TimeValue |
H2MultiplexingRequester.getValidateAfterInactivity() |
Modifier and Type | Method and Description |
---|---|
void |
H2MultiplexingRequester.closeIdle(TimeValue idleTime) |
H2RequesterBootstrap |
H2RequesterBootstrap.setTimeToLive(TimeValue timeToLive) |
void |
H2MultiplexingRequester.setValidateAfterInactivity(TimeValue timeValue) |
Modifier and Type | Method and Description |
---|---|
TimeValue |
H2ConnPool.getValidateAfterInactivity() |
Modifier and Type | Method and Description |
---|---|
void |
H2ConnPool.setValidateAfterInactivity(TimeValue timeValue) |
Modifier and Type | Method and Description |
---|---|
void |
LaxConnPool.closeIdle(TimeValue idleTime) |
void |
ConnPoolControl.closeIdle(TimeValue idleTime) |
void |
StrictConnPool.closeIdle(TimeValue idleTime) |
void |
PoolEntry.updateExpiry(TimeValue expiryTime) |
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
TimeValue |
IOReactorConfig.getSelectInterval() |
TimeValue |
IOReactorConfig.getSoLinger() |
Modifier and Type | Method and Description |
---|---|
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 |
DefaultConnectingIOReactor.awaitShutdown(TimeValue waitTime) |
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. |
Modifier and Type | Method and Description |
---|---|
void |
SocksProxy.shutdown(TimeValue timeout) |
Modifier and Type | Class and Description |
---|---|
class |
Timeout
Represents a timeout value as a non-negative
long time and TimeUnit . |
Modifier and Type | Field and Description |
---|---|
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 . |
Modifier and Type | Method and Description |
---|---|
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) |
Modifier and Type | Method and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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 © 2005–2021 The Apache Software Foundation. All rights reserved.