Uses of Class
org.apache.hc.core5.util.TimeValue
-
Packages that use TimeValue 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.testing.nio org.apache.hc.core5.util Core utility classes. -
-
Uses of TimeValue in org.apache.hc.core5.benchmark
Fields in org.apache.hc.core5.benchmark declared as TimeValue Modifier and Type Field Description private TimeValue
BenchmarkConfig.Builder. timeLimit
private TimeValue
BenchmarkConfig. timeLimit
Methods in org.apache.hc.core5.benchmark that return TimeValue Modifier and Type Method Description TimeValue
BenchmarkConfig. getTimeLimit()
Methods in org.apache.hc.core5.benchmark with parameters of type TimeValue Modifier and Type Method Description BenchmarkConfig.Builder
BenchmarkConfig.Builder. setTimeLimit(TimeValue timeLimit)
Constructors in org.apache.hc.core5.benchmark with parameters of type TimeValue Constructor Description BenchmarkConfig(java.net.URI uri, int requests, int concurrencyLevel, TimeValue timeLimit, Timeout socketTimeout, java.io.File payloadFile, ContentType contentType, int verbosity, boolean headInsteadOfGet, java.lang.String[] headers, boolean keepAlive, java.lang.String method, boolean useChunking, boolean useExpectContinue, boolean useAcceptGZip, java.lang.String payloadText, java.lang.String soapAction, boolean forceHttp2, boolean disableSSLVerification, java.lang.String trustStorePath, java.lang.String identityStorePath, java.lang.String trustStorePassword, java.lang.String identityStorePassword)
-
Uses of TimeValue in org.apache.hc.core5.http.impl.bootstrap
Methods in org.apache.hc.core5.http.impl.bootstrap with parameters of type TimeValue Modifier and Type Method Description void
AsyncRequester. awaitShutdown(TimeValue waitTime)
void
AsyncServer. awaitShutdown(TimeValue waitTime)
void
HttpServer. awaitTermination(TimeValue waitTime)
void
HttpAsyncRequester. closeIdle(TimeValue idleTime)
void
HttpRequester. closeIdle(TimeValue idleTime)
-
Uses of TimeValue in org.apache.hc.core5.http.io
Fields in org.apache.hc.core5.http.io declared as TimeValue Modifier and Type Field Description private TimeValue
SocketConfig.Builder. soLinger
private TimeValue
SocketConfig. soLinger
Methods in org.apache.hc.core5.http.io that return TimeValue Modifier and Type Method Description TimeValue
SocketConfig. getSoLinger()
Methods in org.apache.hc.core5.http.io with parameters of type TimeValue Modifier and Type Method Description SocketConfig.Builder
SocketConfig.Builder. setSoLinger(TimeValue soLinger)
Determines the default value of theSocketOptions.SO_LINGER
parameter for newly created sockets.Constructors in org.apache.hc.core5.http.io with parameters of type TimeValue Constructor Description SocketConfig(Timeout soTimeout, boolean soReuseAddress, TimeValue soLinger, boolean soKeepAlive, boolean tcpNoDelay, int sndBufSize, int rcvBufSize, int backlogSize, java.net.SocketAddress socksProxyAddress)
-
Uses of TimeValue in org.apache.hc.core5.http2.impl.nio.bootstrap
Fields in org.apache.hc.core5.http2.impl.nio.bootstrap declared as TimeValue Modifier and Type Field Description private TimeValue
H2RequesterBootstrap. timeToLive
Methods in org.apache.hc.core5.http2.impl.nio.bootstrap that return TimeValue Modifier and Type Method Description TimeValue
H2MultiplexingRequester. getValidateAfterInactivity()
Methods in org.apache.hc.core5.http2.impl.nio.bootstrap with parameters of type TimeValue Modifier and Type Method Description void
H2MultiplexingRequester. closeIdle(TimeValue idleTime)
H2RequesterBootstrap
H2RequesterBootstrap. setTimeToLive(TimeValue timeToLive)
void
H2MultiplexingRequester. setValidateAfterInactivity(TimeValue timeValue)
-
Uses of TimeValue in org.apache.hc.core5.http2.nio.pool
Fields in org.apache.hc.core5.http2.nio.pool declared as TimeValue Modifier and Type Field Description private TimeValue
H2ConnPool. validateAfterInactivity
Methods in org.apache.hc.core5.http2.nio.pool that return TimeValue Modifier and Type Method Description TimeValue
H2ConnPool. getValidateAfterInactivity()
Methods in org.apache.hc.core5.http2.nio.pool with parameters of type TimeValue Modifier and Type Method Description void
H2ConnPool. setValidateAfterInactivity(TimeValue timeValue)
-
Uses of TimeValue in org.apache.hc.core5.pool
Fields in org.apache.hc.core5.pool declared as TimeValue Modifier and Type Field Description private TimeValue
LaxConnPool.PerRoutePool. timeToLive
private TimeValue
LaxConnPool. timeToLive
private TimeValue
PoolEntry. timeToLive
private TimeValue
StrictConnPool. timeToLive
Methods in org.apache.hc.core5.pool with parameters of type TimeValue Modifier and Type Method Description void
ConnPoolControl. closeIdle(TimeValue idleTime)
void
LaxConnPool. closeIdle(TimeValue idleTime)
void
StrictConnPool. closeIdle(TimeValue idleTime)
PoolEntry<T,C>
StrictConnPool.PerRoutePool. createEntry(TimeValue timeToLive)
void
PoolEntry. updateExpiry(TimeValue expiryTime)
Constructors in org.apache.hc.core5.pool with parameters of type TimeValue Constructor Description LaxConnPool(int defaultMaxPerRoute, TimeValue timeToLive, PoolReusePolicy policy, ConnPoolListener<T> connPoolListener)
LaxConnPool(int defaultMaxPerRoute, TimeValue timeToLive, PoolReusePolicy policy, DisposalCallback<C> disposalCallback, ConnPoolListener<T> connPoolListener)
PerRoutePool(T route, int max, TimeValue timeToLive, PoolReusePolicy policy, ConnPoolStats<T> connPoolStats, DisposalCallback<C> disposalCallback, ConnPoolListener<T> connPoolListener)
PoolEntry(T route, TimeValue timeToLive)
Creates newPoolEntry
instance.PoolEntry(T route, TimeValue timeToLive, Supplier<java.lang.Long> currentTimeSupplier)
PoolEntry(T route, TimeValue timeToLive, DisposalCallback<C> disposalCallback)
Creates newPoolEntry
instance.PoolEntry(T route, TimeValue timeToLive, DisposalCallback<C> disposalCallback, Supplier<java.lang.Long> currentTimeSupplier)
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)
-
Uses of TimeValue in org.apache.hc.core5.reactor
Fields in org.apache.hc.core5.reactor declared as TimeValue Modifier and Type Field Description private TimeValue
IOReactorConfig.Builder. selectInterval
private TimeValue
IOReactorConfig. selectInterval
private TimeValue
IOReactorConfig.Builder. soLinger
private TimeValue
IOReactorConfig. soLinger
Methods in org.apache.hc.core5.reactor that return TimeValue Modifier and Type Method Description TimeValue
IOReactorConfig. getSelectInterval()
TimeValue
IOReactorConfig. getSoLinger()
Methods in org.apache.hc.core5.reactor with parameters of type TimeValue Modifier and Type Method Description void
AbstractSingleCoreIOReactor. awaitShutdown(TimeValue waitTime)
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
MultiCoreIOReactor. 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 theSocketOptions.SO_LINGER
parameter for newly created sockets.Constructors in org.apache.hc.core5.reactor with parameters of type TimeValue Constructor Description IOReactorConfig(TimeValue selectInterval, int ioThreadCount, Timeout soTimeout, boolean soReuseAddress, TimeValue soLinger, boolean soKeepAlive, boolean tcpNoDelay, int trafficClass, int sndBufSize, int rcvBufSize, int backlogSize, java.net.SocketAddress socksProxyAddress, java.lang.String socksProxyUsername, java.lang.String socksProxyPassword)
-
Uses of TimeValue in org.apache.hc.core5.testing
Methods in org.apache.hc.core5.testing with parameters of type TimeValue Modifier and Type Method Description void
SocksProxy. shutdown(TimeValue timeout)
-
Uses of TimeValue in org.apache.hc.core5.testing.nio
Methods in org.apache.hc.core5.testing.nio with parameters of type TimeValue Modifier and Type Method Description void
IOReactorExecutor. awaitShutdown(TimeValue waitTime)
void
IOReactorExecutor. shutdown(TimeValue graceTime)
-
Uses of TimeValue in org.apache.hc.core5.util
Subclasses of TimeValue in org.apache.hc.core5.util Modifier and Type Class Description class
Timeout
Represents a timeout value as a non-negativelong
time andTimeUnit
.Fields in org.apache.hc.core5.util declared as TimeValue Modifier and Type Field Description static TimeValue
TimeValue. MAX_VALUE
A constant holding the maximum value aTimeValue
can have:Long.MAX_VALUE
days.static TimeValue
TimeValue. NEG_ONE_MILLISECOND
A negative one millisecondTimeValue
.static TimeValue
TimeValue. NEG_ONE_SECOND
A negative one secondTimeValue
.static TimeValue
TimeValue. ZERO_MILLISECONDS
A zero millisecondsTimeValue
.Methods in org.apache.hc.core5.util with type parameters of type TimeValue Modifier and Type Method Description static <T extends TimeValue>
TTimeValue. defaultsTo(T timeValue, T defaultValue)
Returns the giventimeValue
if it is notnull
, ifnull
then returns the givendefaultValue
.static <T extends TimeValue>
TArgs. positive(T timeValue, java.lang.String name)
Methods in org.apache.hc.core5.util that return TimeValue Modifier and Type Method 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, java.util.concurrent.TimeUnit targetTimeUnit)
Returns a TimeValue whose value is(this / divisor)
.TimeValue
TimeValue. min(TimeValue other)
static TimeValue
TimeValue. of(long duration, java.util.concurrent.TimeUnit timeUnit)
Creates a TimeValue.static TimeValue
TimeValue. of(java.time.Duration duration)
Creates a TimeValue from a Duration.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(java.lang.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.Methods in org.apache.hc.core5.util with parameters of type TimeValue Modifier and Type Method 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)
-