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 TimeValueBenchmarkConfig.Builder.timeLimitprivate final TimeValueBenchmarkConfig.timeLimitMethods 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 TimeValueModifierConstructorDescriptionprivateBenchmarkConfig(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 TypeMethodDescriptionvoidAsyncRequester.awaitShutdown(TimeValue waitTime) voidAsyncServer.awaitShutdown(TimeValue waitTime) voidHttpServer.awaitTermination(TimeValue waitTime) voidvoid -
Uses of TimeValue in org.apache.hc.core5.http.io
Fields in org.apache.hc.core5.http.io declared as TimeValueModifier and TypeFieldDescriptionprivate TimeValueSocketConfig.Builder.soLingerprivate final TimeValueSocketConfig.soLingerMethods 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.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 TypeMethodDescriptionvoidfinal H2RequesterBootstrapH2RequesterBootstrap.setTimeToLive(TimeValue timeToLive) voidH2MultiplexingRequester.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 TypeMethodDescriptionvoidH2ConnPool.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 TimeValueLaxConnPool.PerRoutePool.timeToLiveprivate final TimeValueLaxConnPool.timeToLiveprivate final TimeValuePoolEntry.timeToLiveprivate final TimeValueStrictConnPool.timeToLiveMethods in org.apache.hc.core5.pool with parameters of type TimeValueModifier and TypeMethodDescriptionvoidvoidvoidStrictConnPool.PerRoutePool.createEntry(TimeValue timeToLive) voidPoolEntry.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 newPoolEntryinstance.(package private)PoolEntry(T route, TimeValue timeToLive, DisposalCallback<C> disposalCallback) Creates newPoolEntryinstance.(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 TimeValueIOReactorConfig.Builder.selectIntervalprivate final TimeValueIOReactorConfig.selectIntervalprivate TimeValueIOReactorConfig.Builder.soLingerprivate final TimeValueIOReactorConfig.soLingerMethods 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 voidAbstractSingleCoreIOReactor.awaitShutdown(TimeValue waitTime) voidDefaultConnectingIOReactor.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 voidMultiCoreIOReactor.awaitShutdown(TimeValue waitTime) 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.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 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)