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
Methods in org.apache.hc.core5.benchmark that return TimeValueMethods in org.apache.hc.core5.benchmark with parameters of type TimeValue -
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 TypeMethodDescriptionvoidAsyncRequester.awaitShutdown(TimeValue waitTime) voidAsyncServer.awaitShutdown(TimeValue waitTime) voidHttpServer.awaitTermination(TimeValue waitTime) voidvoid -
Uses of TimeValue in org.apache.hc.core5.http.io
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_LINGERparameter for newly created sockets. -
Uses of TimeValue in org.apache.hc.core5.http2.impl.nio.bootstrap
Methods 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 TypeMethodDescriptionvoidfinal H2RequesterBootstrapH2RequesterBootstrap.setTimeToLive(TimeValue timeToLive) voidH2MultiplexingRequester.setValidateAfterInactivity(TimeValue timeValue) -
Uses of TimeValue in org.apache.hc.core5.http2.nio.pool
Methods 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 TypeMethodDescriptionvoidH2ConnPool.setValidateAfterInactivity(TimeValue timeValue) -
Uses of TimeValue in org.apache.hc.core5.pool
Methods in org.apache.hc.core5.pool with parameters of type TimeValueModifier and TypeMethodDescriptionvoidvoidvoidvoidPoolEntry.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) Creates newPoolEntryinstance.PoolEntry(T route, TimeValue timeToLive, DisposalCallback<C> disposalCallback) Creates newPoolEntryinstance.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
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 TypeMethodDescriptionvoidDefaultConnectingIOReactor.awaitShutdown(TimeValue waitTime) voidDefaultListeningIOReactor.awaitShutdown(TimeValue waitTime) voidIOReactor.awaitShutdown(TimeValue waitTime) Blocks for the given period of time in milliseconds awaiting the completion of the reactor shutdown.final voidIOReactorConfig.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_LINGERparameter for newly created sockets. -
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.util
Subclasses of TimeValue in org.apache.hc.core5.utilModifier and TypeClassDescriptionclassRepresents a timeout value as a non-negativelongtime andTimeUnit.Fields in org.apache.hc.core5.util declared as TimeValueModifier and TypeFieldDescriptionstatic final TimeValueTimeValue.MAX_VALUEA constant holding the maximum value aTimeValuecan have:Long.MAX_VALUEdays.static final TimeValueTimeValue.NEG_ONE_MILLISECONDA negative one millisecondTimeValue.static final TimeValueTimeValue.NEG_ONE_SECONDA negative one secondTimeValue.static final TimeValueTimeValue.ZERO_MILLISECONDSA 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 giventimeValueif it is notnull, ifnullthen returns the givendefaultValue.static <T extends TimeValue>
TMethods in org.apache.hc.core5.util that return TimeValueModifier and TypeMethodDescriptionstatic TimeValueTimeValue.defaultsToNegativeOneMillisecond(TimeValue timeValue) static TimeValueTimeValue.defaultsToNegativeOneSecond(TimeValue timeValue) static TimeValueTimeValue.defaultsToZeroMilliseconds(TimeValue timeValue) TimeValue.divide(long divisor) Returns a TimeValue whose value is(this / divisor).Returns a TimeValue whose value is(this / divisor).static TimeValueCreates a TimeValue.static TimeValueCreates a TimeValue from a Duration.static TimeValueTimeValue.ofDays(long days) static TimeValueTimeValue.ofHours(long hours) static TimeValueTimeValue.ofMicroseconds(long microseconds) static TimeValueTimeValue.ofMilliseconds(long millis) static TimeValueTimeValue.ofMinutes(long minutes) static TimeValueTimeValue.ofNanoseconds(long nanoseconds) static TimeValueTimeValue.ofSeconds(long seconds) static TimeValueParses 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 DeadlineCalculates a deadline with a given time in milliseconds plus a given time value.static DeadlineCalculates a deadline from now plus a given time value.intstatic TimeValueTimeValue.defaultsToNegativeOneMillisecond(TimeValue timeValue) static TimeValueTimeValue.defaultsToNegativeOneSecond(TimeValue timeValue) static TimeValueTimeValue.defaultsToZeroMilliseconds(TimeValue timeValue) static booleanTimeValue.isNonNegative(TimeValue timeValue) static booleanTimeValue.isPositive(TimeValue timeValue)