Uses of Class
org.apache.hc.core5.util.TimeValue
Packages that use TimeValue
Package
Description
Apache Bench (AB) clone based on HttpCore.
HTTP/1.1 requester and server bootstrap.
Core HTTP transport APIs based on the classic (blocking) I/O model.
HTTP/2 capable requester and server bootstrap.
HTTP/2 specific pool component APIs.
Client side connection pool component APIs.
Event driven network communication APIs and components loosely based on
Doug Lea's
reactor pattern.
Core utility classes.
-
Uses of TimeValue in org.apache.hc.core5.benchmark
Fields in org.apache.hc.core5.benchmark declared as TimeValueModifier and TypeFieldDescriptionprivate TimeValue
BenchmarkConfig.Builder.timeLimit
private final TimeValue
BenchmarkConfig.timeLimit
Methods in org.apache.hc.core5.benchmark that return TimeValueMethods in org.apache.hc.core5.benchmark with parameters of type TimeValueConstructors in org.apache.hc.core5.benchmark with parameters of type TimeValueModifierConstructorDescriptionprivate
BenchmarkConfig
(URI uri, int requests, int concurrencyLevel, TimeValue timeLimit, Timeout socketTimeout, File payloadFile, ContentType contentType, int verbosity, boolean headInsteadOfGet, String[] headers, boolean keepAlive, String method, boolean useChunking, boolean useExpectContinue, boolean useAcceptGZip, String payloadText, String soapAction, boolean forceHttp2, boolean disableSSLVerification, String trustStorePath, String identityStorePath, String trustStorePassword, 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 TimeValueModifier and TypeMethodDescriptionvoid
AsyncRequester.awaitShutdown
(TimeValue waitTime) void
AsyncServer.awaitShutdown
(TimeValue waitTime) void
HttpServer.awaitTermination
(TimeValue waitTime) void
void
-
Uses of TimeValue in org.apache.hc.core5.http.io
Fields in org.apache.hc.core5.http.io declared as TimeValueModifier and TypeFieldDescriptionprivate TimeValue
SocketConfig.Builder.soLinger
private final TimeValue
SocketConfig.soLinger
Methods in org.apache.hc.core5.http.io that return TimeValueMethods in org.apache.hc.core5.http.io with parameters of type TimeValueModifier and TypeMethodDescriptionSocketConfig.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 TimeValueModifierConstructorDescription(package private)
SocketConfig
(Timeout soTimeout, boolean soReuseAddress, TimeValue soLinger, boolean soKeepAlive, boolean tcpNoDelay, int sndBufSize, int rcvBufSize, int backlogSize, 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 TimeValueMethods in org.apache.hc.core5.http2.impl.nio.bootstrap that return TimeValueMethods in org.apache.hc.core5.http2.impl.nio.bootstrap with parameters of type TimeValueModifier and TypeMethodDescriptionvoid
final 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 TimeValueMethods in org.apache.hc.core5.http2.nio.pool that return TimeValueMethods in org.apache.hc.core5.http2.nio.pool with parameters of type TimeValueModifier and TypeMethodDescriptionvoid
H2ConnPool.setValidateAfterInactivity
(TimeValue timeValue) -
Uses of TimeValue in org.apache.hc.core5.pool
Fields in org.apache.hc.core5.pool declared as TimeValueModifier and TypeFieldDescriptionprivate final TimeValue
LaxConnPool.PerRoutePool.timeToLive
private final TimeValue
LaxConnPool.timeToLive
private final TimeValue
PoolEntry.timeToLive
private final TimeValue
StrictConnPool.timeToLive
Methods in org.apache.hc.core5.pool with parameters of type TimeValueModifier and TypeMethodDescriptionvoid
void
void
StrictConnPool.PerRoutePool.createEntry
(TimeValue timeToLive) void
PoolEntry.updateExpiry
(TimeValue expiryTime) Constructors in org.apache.hc.core5.pool with parameters of type TimeValueModifierConstructorDescriptionLaxConnPool
(int defaultMaxPerRoute, TimeValue timeToLive, PoolReusePolicy policy, ConnPoolListener<T> connPoolListener) LaxConnPool
(int defaultMaxPerRoute, TimeValue timeToLive, PoolReusePolicy policy, DisposalCallback<C> disposalCallback, ConnPoolListener<T> connPoolListener) (package private)
PerRoutePool
(T route, int max, TimeValue timeToLive, PoolReusePolicy policy, ConnPoolStats<T> connPoolStats, DisposalCallback<C> disposalCallback, ConnPoolListener<T> connPoolListener) Creates newPoolEntry
instance.(package private)
PoolEntry
(T route, TimeValue timeToLive, DisposalCallback<C> disposalCallback) Creates newPoolEntry
instance.(package private)
PoolEntry
(T route, TimeValue timeToLive, DisposalCallback<C> disposalCallback, Supplier<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 TimeValueModifier and TypeFieldDescriptionprivate TimeValue
IOReactorConfig.Builder.selectInterval
private final TimeValue
IOReactorConfig.selectInterval
private TimeValue
IOReactorConfig.Builder.soLinger
private final TimeValue
IOReactorConfig.soLinger
Methods in org.apache.hc.core5.reactor that return TimeValueModifier and TypeMethodDescriptionIOReactorConfig.getSelectInterval()
IOReactorConfig.getSoLinger()
Methods in org.apache.hc.core5.reactor with parameters of type TimeValueModifier and TypeMethodDescriptionfinal 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.final void
MultiCoreIOReactor.awaitShutdown
(TimeValue waitTime) final void
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.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 TimeValueModifierConstructorDescription(package private)
IOReactorConfig
(TimeValue selectInterval, int ioThreadCount, Timeout soTimeout, boolean soReuseAddress, TimeValue soLinger, boolean soKeepAlive, boolean tcpNoDelay, int trafficClass, int sndBufSize, int rcvBufSize, int backlogSize, SocketAddress socksProxyAddress, String socksProxyUsername, String socksProxyPassword) -
Uses of TimeValue in org.apache.hc.core5.testing
Methods in org.apache.hc.core5.testing with parameters of type TimeValue -
Uses of TimeValue in org.apache.hc.core5.testing.nio
Methods in org.apache.hc.core5.testing.nio with parameters of type TimeValue -
Uses of TimeValue in org.apache.hc.core5.util
Subclasses of TimeValue in org.apache.hc.core5.utilModifier and TypeClassDescriptionclass
Represents a timeout value as a non-negativelong
time andTimeUnit
.Fields in org.apache.hc.core5.util declared as TimeValueModifier and TypeFieldDescriptionstatic final TimeValue
TimeValue.MAX_VALUE
A constant holding the maximum value aTimeValue
can have:Long.MAX_VALUE
days.static final TimeValue
TimeValue.NEG_ONE_MILLISECOND
A negative one millisecondTimeValue
.static final TimeValue
TimeValue.NEG_ONE_SECOND
A negative one secondTimeValue
.static final TimeValue
TimeValue.ZERO_MILLISECONDS
A zero millisecondsTimeValue
.Methods in org.apache.hc.core5.util with type parameters of type TimeValueModifier and TypeMethodDescriptionstatic <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>
TMethods in org.apache.hc.core5.util that return TimeValueModifier and TypeMethodDescriptionstatic TimeValue
TimeValue.defaultsToNegativeOneMillisecond
(TimeValue timeValue) static TimeValue
TimeValue.defaultsToNegativeOneSecond
(TimeValue timeValue) static TimeValue
TimeValue.defaultsToZeroMilliseconds
(TimeValue timeValue) TimeValue.divide
(long divisor) Returns a TimeValue whose value is(this / divisor)
.Returns a TimeValue whose value is(this / divisor)
.static TimeValue
Creates a TimeValue.static TimeValue
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
Parses a TimeValue in the format<Long><SPACE><TimeUnit>
, for example"1200 MILLISECONDS"
.Deadline.remainingTimeValue()
Returns the difference as a TimeValue between the deadline and now.Methods in org.apache.hc.core5.util with parameters of type TimeValueModifier and TypeMethodDescriptionstatic Deadline
Calculates a deadline with a given time in milliseconds plus a given time value.static Deadline
Calculates a deadline from now plus a given time value.int
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)