Uses of Class
org.forgerock.util.time.Duration
-
Packages that use Duration Package Description org.forgerock.am.cts.api.filter org.forgerock.http.handler CoreHandler
implementations.org.forgerock.json Provides an API for the traversal and manipulation of JSON object model structures in Java.org.forgerock.json.jose.jwk.store This package contains classes to manage a JWKs URI.org.forgerock.opendj.ldap Classes and interfaces for core types including connections, entries, and attributes.org.forgerock.util Provides common interfaces and classes.org.forgerock.util.time Provides a time service abstraction. -
-
Uses of Duration in org.forgerock.am.cts.api.filter
Methods in org.forgerock.am.cts.api.filter that return Duration Modifier and Type Method Description Duration
TokenFilter. getTimeLimit()
Get the time limit of the query.Methods in org.forgerock.am.cts.api.filter with parameters of type Duration Modifier and Type Method Description void
TokenFilter. setTimeLimit(Duration timeLimit)
Set the time limit of the query.TokenFilterBuilder
TokenFilterBuilder. withTimeLimit(Duration timeLimit)
Sets the time limit for the query request. -
Uses of Duration in org.forgerock.http.handler
Fields in org.forgerock.http.handler with type parameters of type Duration Modifier and Type Field Description static Option<Duration>
HttpClientHandler. OPTION_CONNECT_TIMEOUT
The TCP connect timeout for new HTTP connections.static Option<Duration>
HttpClientHandler. OPTION_SO_TIMEOUT
The TCP socket timeout when waiting for HTTP responses. -
Uses of Duration in org.forgerock.json
Methods in org.forgerock.json that return types with arguments of type Duration Modifier and Type Method Description static Function<JsonValue,Duration,JsonValueException>
JsonValueFunctions. duration()
Returns the JSON string value as aDuration
. -
Uses of Duration in org.forgerock.json.jose.jwk.store
Fields in org.forgerock.json.jose.jwk.store declared as Duration Modifier and Type Field Description static Duration
JwksStoreService. JWKS_STORE_DEFAULT_CACHE_MISS_CACHE_TIME_MS
The default cache time before reload the cache in case of cache miss ms.static Duration
JwksStoreService. JWKS_STORE_DEFAULT_CACHE_TIMEOUT_MS
The default cache timeout in ms.Methods in org.forgerock.json.jose.jwk.store that return Duration Modifier and Type Method Description Duration
JwksStore. getCacheMissCacheTime()
Get the cache time before reloading the cache in case of cache miss.Duration
JwksStore. getCacheTimeout()
Get the cache timeout.Methods in org.forgerock.json.jose.jwk.store with parameters of type Duration Modifier and Type Method Description JwksStore
JwksStoreService. configureJwksStore(String uid, Duration cacheTimeout, Duration cacheMissCacheTime, URL jwkUrl)
Deprecated.UseJwksStoreService.configureJwksStore(String, Duration, Duration, URL, Clock)
with an explicit clock.JwksStore
JwksStoreService. configureJwksStore(String uid, Duration cacheTimeout, Duration cacheMissCacheTime, URL jwkUrl, Clock clock)
Deprecated.Promise<JwksStore,FailedToLoadJWKException>
JwksStoreService. configureJwksStoreAsync(String uid, Duration cacheTimeout, Duration cacheMissCacheTime, URL jwkUrl, Clock clock)
Configure a JWKs store.static Promise<JwksStore,FailedToLoadJWKException>
JwksStore. newJwksStore(Duration cacheTimeout, Duration cacheMissCacheTime, URL jwkUrl, JWKSetParser jwkSetParser, Clock clock)
Create a new JWKs store asynchronously.void
JwksStore. setCacheMissCacheTime(Duration cacheMissCacheTime)
Update the cache time before reloading the cache in case of cache miss.void
JwksStore. setCacheTimeout(Duration cacheTimeout)
Update the cache timeout.Constructors in org.forgerock.json.jose.jwk.store with parameters of type Duration Constructor Description JwksStore(Duration cacheTimeout, Duration cacheMissCacheTime, URL jwkUrl, JWKSetParser jwkSetParser, Clock clock)
Deprecated.It is recommended to useJwksStore.newJwksStore(Duration, Duration, URL, JWKSetParser, Clock)
. -
Uses of Duration in org.forgerock.opendj.ldap
Fields in org.forgerock.opendj.ldap with type parameters of type Duration Modifier and Type Field Description static Option<Duration>
LdapConnectionFactory. CONNECT_TIMEOUT
Specifies the connect timeout spcified.static Option<Duration>
LdapConnectionFactory. HEARTBEAT_INTERVAL
Specifies the time between successive heart-beat requests (default interval is 10 seconds).static Option<Duration>
LdapConnectionFactory. HEARTBEAT_TIMEOUT
Specifies the timeout for heart-beat requests, after which the remote Directory Server will be deemed to be unavailable (default timeout is 3 seconds).static Option<Duration>
LdapClients. LDAP_CLIENT_CONNECT_TIMEOUT
Specifies the connect timeout specified.static Option<Duration>
LdapClients. LDAP_CLIENT_HEARTBEAT_INTERVAL
Specifies the time between successive heart-beat requests (default interval is 10 seconds).static Option<Duration>
LdapClients. LDAP_CLIENT_HEARTBEAT_TIMEOUT
Specifies the timeout for heart-beat requests, after which the remote Directory Server will be deemed to be unavailable (default timeout is 3 seconds).static Option<Duration>
LdapClients. LDAP_CLIENT_REQUEST_TIMEOUT
Specifies the operation timeout.static Option<Duration>
LdapClients. LOAD_BALANCER_MONITORING_INTERVAL
Specifies the interval between successive attempts to reconnect to offline load-balanced LDAP clients.static Option<Duration>
LdapConnectionFactory. REQUEST_TIMEOUT
Specifies the operation timeout. -
Uses of Duration in org.forgerock.util
Methods in org.forgerock.util that return Duration Modifier and Type Method Description Duration
PerItemEvictionStrategyCache. getMaxTimeout()
Gets the maximum timeout (can be null).Methods in org.forgerock.util with parameters of type Duration Modifier and Type Method Description void
PerItemEvictionStrategyCache. setMaxTimeout(Duration maxTimeout)
Sets the maximum timeout.Method parameters in org.forgerock.util with type arguments of type Duration Modifier and Type Method Description <E extends Exception>
VPerItemEvictionStrategyCache. getValue(K key, Callable<V> callable, AsyncFunction<V,Duration,E> expire)
Borrow (and create before hand if absent) a cache entry.Constructors in org.forgerock.util with parameters of type Duration Constructor Description PerItemEvictionStrategyCache(ScheduledExecutorService executorService, Duration defaultTimeout)
Build a newPerItemEvictionStrategyCache
using the given scheduled executor.Constructor parameters in org.forgerock.util with type arguments of type Duration Constructor Description PerItemEvictionStrategyCache(ScheduledExecutorService executorService, AsyncFunction<V,Duration,Exception> defaultTimeoutFunction)
Build a newPerItemEvictionStrategyCache
using the given scheduled executor. -
Uses of Duration in org.forgerock.util.time
Fields in org.forgerock.util.time declared as Duration Modifier and Type Field Description static Duration
Duration. UNLIMITED
Special duration that represents an unlimited duration (or indefinite).static Duration
Duration. ZERO
Special duration that represents a zero-length duration.Methods in org.forgerock.util.time that return Duration Modifier and Type Method Description Duration
Duration. convertTo(TimeUnit targetUnit)
Convert the current duration to a givenTimeUnit
.static Duration
Duration. duration(long number, TimeUnit unit)
Provides aDuration
, given a number and time unit.static Duration
Duration. duration(String value)
Provides aDuration
that represents the given duration expressed in english.Methods in org.forgerock.util.time with parameters of type Duration Modifier and Type Method Description int
Duration. compareTo(Duration that)
-