Uses of Class
org.apache.hc.core5.util.TimeValue
-
Packages that use TimeValue Package Description 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.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.util Core utility classes. -
-
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
Methods 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. -
Uses of TimeValue in org.apache.hc.core5.pool
Methods in org.apache.hc.core5.pool with parameters of type TimeValue Modifier and Type Method Description voidConnPoolControl. closeIdle(TimeValue idleTime)voidLaxConnPool. closeIdle(TimeValue idleTime)voidRouteSegmentedConnPool. closeIdle(TimeValue idleTime)voidStrictConnPool. closeIdle(TimeValue idleTime)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)PoolEntry(T route, TimeValue timeToLive)Creates newPoolEntryinstance.PoolEntry(T route, TimeValue timeToLive, DisposalCallback<C> disposalCallback)Creates newPoolEntryinstance.RouteSegmentedConnPool(int defaultMaxPerRoute, int maxTotal, TimeValue timeToLive, PoolReusePolicy reusePolicy, DisposalCallback<C> disposal)RouteSegmentedConnPool(int defaultMaxPerRoute, int maxTotal, TimeValue timeToLive, PoolReusePolicy reusePolicy, DisposalCallback<C> disposal, ConnPoolListener<R> connPoolListener)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 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 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.voidAbstractIOSessionPool. closeIdle(TimeValue inactivityTime)Close sessions idle longer than the given period of inactivity.IOReactorConfig.BuilderIOReactorConfig.Builder. setSelectInterval(TimeValue selectInterval)Sets 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)Sets the default value of theSocketOptions.SO_LINGERparameter for newly created sockets. -
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)
-