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 TimeValueBenchmarkConfig.Builder. timeLimitprivate TimeValueBenchmarkConfig. timeLimitMethods in org.apache.hc.core5.benchmark that return TimeValue Modifier and Type Method Description TimeValueBenchmarkConfig. getTimeLimit()Methods in org.apache.hc.core5.benchmark with parameters of type TimeValue Modifier and Type Method Description BenchmarkConfig.BuilderBenchmarkConfig.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 voidAsyncRequester. awaitShutdown(TimeValue waitTime)voidAsyncServer. awaitShutdown(TimeValue waitTime)voidHttpServer. awaitTermination(TimeValue waitTime)voidHttpAsyncRequester. closeIdle(TimeValue idleTime)voidHttpRequester. 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 TimeValueSocketConfig.Builder. soLingerprivate TimeValueSocketConfig. soLingerMethods in org.apache.hc.core5.http.io that return TimeValue Modifier and Type Method Description TimeValueSocketConfig. getSoLinger()Methods in org.apache.hc.core5.http.io with parameters of type TimeValue Modifier and Type Method Description SocketConfig.BuilderSocketConfig.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 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 TimeValueH2RequesterBootstrap. timeToLiveMethods in org.apache.hc.core5.http2.impl.nio.bootstrap that return TimeValue Modifier and Type Method Description TimeValueH2MultiplexingRequester. getValidateAfterInactivity()Methods in org.apache.hc.core5.http2.impl.nio.bootstrap with parameters of type TimeValue Modifier and Type Method Description voidH2MultiplexingRequester. closeIdle(TimeValue idleTime)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 TimeValue Modifier and Type Field Description private TimeValueH2ConnPool. validateAfterInactivityMethods in org.apache.hc.core5.http2.nio.pool that return TimeValue Modifier and Type Method Description TimeValueH2ConnPool. getValidateAfterInactivity()Methods in org.apache.hc.core5.http2.nio.pool with parameters of type TimeValue Modifier and Type Method Description voidH2ConnPool. 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 TimeValueLaxConnPool.PerRoutePool. timeToLiveprivate TimeValueLaxConnPool. timeToLiveprivate TimeValuePoolEntry. timeToLiveprivate TimeValueStrictConnPool. timeToLiveMethods in org.apache.hc.core5.pool with parameters of type TimeValue Modifier and Type Method Description voidConnPoolControl. closeIdle(TimeValue idleTime)voidLaxConnPool. closeIdle(TimeValue idleTime)voidStrictConnPool. closeIdle(TimeValue idleTime)PoolEntry<T,C>StrictConnPool.PerRoutePool. createEntry(TimeValue timeToLive)voidPoolEntry. 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 newPoolEntryinstance.PoolEntry(T route, TimeValue timeToLive, Supplier<java.lang.Long> currentTimeSupplier)PoolEntry(T route, TimeValue timeToLive, DisposalCallback<C> disposalCallback)Creates newPoolEntryinstance.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 TimeValueIOReactorConfig.Builder. selectIntervalprivate TimeValueIOReactorConfig. selectIntervalprivate TimeValueIOReactorConfig.Builder. soLingerprivate TimeValueIOReactorConfig. soLingerMethods in org.apache.hc.core5.reactor that return TimeValue Modifier and Type Method Description TimeValueIOReactorConfig. getSelectInterval()TimeValueIOReactorConfig. getSoLinger()Methods in org.apache.hc.core5.reactor with parameters of type TimeValue Modifier and Type Method Description 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.voidMultiCoreIOReactor. awaitShutdown(TimeValue waitTime)voidAbstractIOSessionPool. closeIdle(TimeValue idleTime)IOReactorConfig.BuilderIOReactorConfig.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.BuilderIOReactorConfig.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 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 voidSocksProxy. 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 voidIOReactorExecutor. awaitShutdown(TimeValue waitTime)voidIOReactorExecutor. 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 classTimeoutRepresents a timeout value as a non-negativelongtime andTimeUnit.Fields in org.apache.hc.core5.util declared as TimeValue Modifier and Type Field Description static TimeValueTimeValue. MAX_VALUEA constant holding the maximum value aTimeValuecan have:Long.MAX_VALUEdays.static TimeValueTimeValue. NEG_ONE_MILLISECONDA negative one millisecondTimeValue.static TimeValueTimeValue. NEG_ONE_SECONDA negative one secondTimeValue.static TimeValueTimeValue. ZERO_MILLISECONDSA 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 giventimeValueif it is notnull, ifnullthen 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 TimeValueTimeValue. defaultsToNegativeOneMillisecond(TimeValue timeValue)static TimeValueTimeValue. defaultsToNegativeOneSecond(TimeValue timeValue)static TimeValueTimeValue. defaultsToZeroMilliseconds(TimeValue timeValue)TimeValueTimeValue. divide(long divisor)Returns a TimeValue whose value is(this / divisor).TimeValueTimeValue. divide(long divisor, java.util.concurrent.TimeUnit targetTimeUnit)Returns a TimeValue whose value is(this / divisor).TimeValueTimeValue. min(TimeValue other)static TimeValueTimeValue. of(long duration, java.util.concurrent.TimeUnit timeUnit)Creates a TimeValue.static TimeValueTimeValue. of(java.time.Duration duration)Creates 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 TimeValueTimeValue. parse(java.lang.String value)Parses a TimeValue in the format<Long><SPACE><TimeUnit>, for example"1200 MILLISECONDS".TimeValueDeadline. 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 DeadlineDeadline. calculate(long timeMillis, TimeValue timeValue)Calculates a deadline with a given time in milliseconds plus a given time value.static DeadlineDeadline. calculate(TimeValue timeValue)Calculates a deadline from now plus a given time value.intTimeValue. compareTo(TimeValue other)static TimeValueTimeValue. defaultsToNegativeOneMillisecond(TimeValue timeValue)static TimeValueTimeValue. defaultsToNegativeOneSecond(TimeValue timeValue)static TimeValueTimeValue. defaultsToZeroMilliseconds(TimeValue timeValue)static booleanTimeValue. isNonNegative(TimeValue timeValue)static booleanTimeValue. isPositive(TimeValue timeValue)TimeValueTimeValue. min(TimeValue other)
-