## 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.util | Core utility classes.

- - ### Uses of TimeValue in org.apache.hc.core5.benchmark

    Methods in org.apache.hc.core5.benchmark that return TimeValue
    Modifier and Type | Method and Description
    --- | ---
    `TimeValue` | BenchmarkConfig.`getTimeLimit()`

    Methods in org.apache.hc.core5.benchmark with parameters of type TimeValue
    Modifier and Type | Method and Description
    --- | ---
    `BenchmarkConfig.Builder` | BenchmarkConfig.Builder.`setTimeLimit(TimeValue timeLimit)`

  - ### 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 and Description
    --- | ---
    `void` | AsyncServer.`awaitShutdown(TimeValue waitTime)`
    `void` | AsyncRequester.`awaitShutdown(TimeValue waitTime)`
    `void` | HttpServer.`awaitTermination(TimeValue waitTime)`
    `void` | HttpRequester.`closeIdle(TimeValue idleTime)`
    `void` | HttpAsyncRequester.`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 and Description
    --- | ---
    `TimeValue` | SocketConfig.`getSoLinger()`

    Methods in org.apache.hc.core5.http.io with parameters of type TimeValue
    Modifier and Type | Method and Description
    --- | ---
    `SocketConfig.Builder` | SocketConfig.Builder.`setSoLinger(TimeValue soLinger)` Determines the default value of the `SocketOptions.SO_LINGER` parameter 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 TimeValue
    Modifier and Type | Method and Description
    --- | ---
    `TimeValue` | H2MultiplexingRequester.`getValidateAfterInactivity()`

    Methods in org.apache.hc.core5.http2.impl.nio.bootstrap with parameters of type TimeValue
    Modifier and Type | Method and Description
    --- | ---
    `void` | H2MultiplexingRequester.`closeIdle(TimeValue idleTime)`
    `H2RequesterBootstrap` | H2RequesterBootstrap.`setTimeToLive(TimeValue timeToLive)`
    `void` | H2MultiplexingRequester.`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 TimeValue
    Modifier and Type | Method and Description
    --- | ---
    `TimeValue` | H2ConnPool.`getValidateAfterInactivity()`

    Methods in org.apache.hc.core5.http2.nio.pool with parameters of type TimeValue
    Modifier and Type | Method and Description
    --- | ---
    `void` | H2ConnPool.`setValidateAfterInactivity(TimeValue timeValue)`

  - ### 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 and Description
    --- | ---
    `void` | LaxConnPool.`closeIdle(TimeValue idleTime)`
    `void` | ConnPoolControl.`closeIdle(TimeValue idleTime)`
    `void` | StrictConnPool.`closeIdle(TimeValue idleTime)`
    `void` | PoolEntry.`updateExpiry(TimeValue expiryTime)`

    Constructors in org.apache.hc.core5.pool with parameters of type TimeValue
    Constructor and 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 new `PoolEntry` instance.
    `PoolEntry(T route, TimeValue timeToLive, DisposalCallback<C> disposalCallback)` Creates new `PoolEntry` instance.
    `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 and Description
    --- | ---
    `TimeValue` | IOReactorConfig.`getSelectInterval()`
    `TimeValue` | IOReactorConfig.`getSoLinger()`

    Methods in org.apache.hc.core5.reactor with parameters of type TimeValue
    Modifier and Type | Method and Description
    --- | ---
    `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.
    `void` | DefaultConnectingIOReactor.`awaitShutdown(TimeValue waitTime)`
    `void` | AbstractIOSessionPool.`closeIdle(TimeValue idleTime)`
    `IOReactorConfig.Builder` | 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` | IOReactorConfig.Builder.`setSoLinger(TimeValue soLinger)` Determines the default value of the `SocketOptions.SO_LINGER` parameter 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
    Modifier and Type | Method and Description
    --- | ---
    `void` | SocksProxy.`shutdown(TimeValue timeout)`

  - ### Uses of TimeValue in org.apache.hc.core5.util

    Subclasses of TimeValue in org.apache.hc.core5.util
    Modifier and Type | Class and Description
    --- | ---
    `class` | `Timeout` Represents a timeout value as a non-negative `long` time and `TimeUnit`.

    Fields in org.apache.hc.core5.util declared as TimeValue
    Modifier and Type | Field and Description
    --- | ---
    `static TimeValue` | TimeValue.`MAX_VALUE` A constant holding the maximum value a `TimeValue` can have: `Long.MAX_VALUE` days.
    `static TimeValue` | TimeValue.`NEG_ONE_MILLISECOND` A negative one millisecond `TimeValue`.
    `static TimeValue` | TimeValue.`NEG_ONE_SECOND` A negative one second `TimeValue`.
    `static TimeValue` | TimeValue.`ZERO_MILLISECONDS` A zero milliseconds `TimeValue`.

    Methods in org.apache.hc.core5.util with type parameters of type TimeValue
    Modifier and Type | Method and Description
    --- | ---
    `static <T extends TimeValue> T` | TimeValue.`defaultsTo(T timeValue, T defaultValue)` Returns the given `timeValue` if it is not `null`, if `null` then returns the given `defaultValue`.
    `static <T extends TimeValue> T` | Args.`positive(T timeValue, String name)`

    Methods in org.apache.hc.core5.util that return TimeValue
    Modifier and Type | Method and Description
    --- | ---
    `static TimeValue` | TimeValue.`defaultsToNegativeOneMillisecond(TimeValue timeValue)` Returns the given `timeValue` if it is not `null`, if `null` then returns `NEG_ONE_SECOND`.
    `static TimeValue` | TimeValue.`defaultsToNegativeOneSecond(TimeValue timeValue)` Returns the given `timeValue` if it is not `null`, if `null` then returns `NEG_ONE_SECOND`.
    `static TimeValue` | TimeValue.`defaultsToZeroMilliseconds(TimeValue timeValue)` Returns the given `timeValue` if it is not `null`, if `null` then returns `ZERO_MILLISECONDS`.
    `TimeValue` | TimeValue.`divide(long divisor)` Returns a TimeValue whose value is `(this / divisor)`.
    `TimeValue` | TimeValue.`divide(long divisor, TimeUnit targetTimeUnit)` Returns a TimeValue whose value is `(this / divisor)`.
    `TimeValue` | TimeValue.`min(TimeValue other)`
    `static TimeValue` | TimeValue.`of(long duration, TimeUnit timeUnit)` Creates a TimeValue.
    `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` | TimeValue.`parse(String value)` Parses a TimeValue in the format `<Long><SPACE><TimeUnit>`, for example `"1200 MILLISECONDS"`.
    `TimeValue` | Deadline.`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 and Description
    --- | ---
    `static Deadline` | Deadline.`calculate(long timeMillis, TimeValue timeValue)` Calculates a deadline with a given time in milliseconds plus a given time value.
    `static Deadline` | Deadline.`calculate(TimeValue timeValue)` Calculates a deadline from now plus a given time value.
    `int` | TimeValue.`compareTo(TimeValue other)`
    `static TimeValue` | TimeValue.`defaultsToNegativeOneMillisecond(TimeValue timeValue)` Returns the given `timeValue` if it is not `null`, if `null` then returns `NEG_ONE_SECOND`.
    `static TimeValue` | TimeValue.`defaultsToNegativeOneSecond(TimeValue timeValue)` Returns the given `timeValue` if it is not `null`, if `null` then returns `NEG_ONE_SECOND`.
    `static TimeValue` | TimeValue.`defaultsToZeroMilliseconds(TimeValue timeValue)` Returns the given `timeValue` if it is not `null`, if `null` then returns `ZERO_MILLISECONDS`.
    `static boolean` | TimeValue.`isNonNegative(TimeValue timeValue)`
    `static boolean` | TimeValue.`isPositive(TimeValue timeValue)`
    `TimeValue` | TimeValue.`min(TimeValue other)`

Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.