Uses of Class
org.forgerock.util.time.Duration
Package
Description
Core
Handler
implementations.Provides an API for the traversal and manipulation of JSON object model structures in Java.
This package contains classes to manage a JWKs URI.
Defines the core classes to implement OAuth2 for OpenAM.
Classes and interfaces for core types including connections, entries, and
attributes.
Provides common interfaces and classes.
Provides a time service abstraction.
-
Uses of Duration in org.forgerock.am.cts.api.filter
Modifier and TypeMethodDescriptionvoid
TokenFilter.setTimeLimit
(Duration timeLimit) Set the time limit of the query.TokenFilterBuilder.withTimeLimit
(Duration timeLimit) Sets the time limit for the query request. -
Uses of Duration in org.forgerock.http.handler
Modifier and TypeFieldDescriptionHttpClientHandler.OPTION_CONNECT_TIMEOUT
The TCP connect timeout for new HTTP connections.HttpClientHandler.OPTION_SO_TIMEOUT
The TCP socket timeout when waiting for HTTP responses. -
Uses of Duration in org.forgerock.json
-
Uses of Duration in org.forgerock.json.jose.jwk.store
Modifier and TypeFieldDescriptionstatic final 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 final Duration
JwksStoreService.JWKS_STORE_DEFAULT_CACHE_TIMEOUT_MS
The default cache timeout in ms.Modifier and TypeMethodDescriptionJwksStore.getCacheMissCacheTime()
Get the cache time before reloading the cache in case of cache miss.JwksStore.getCacheTimeout()
Get the cache timeout.Modifier and TypeMethodDescriptionJwksStoreService.configureJwksStore
(String uid, Duration cacheTimeout, Duration cacheMissCacheTime, URL jwkUrl) Deprecated.JwksStoreService.configureJwksStore
(String uid, Duration cacheTimeout, Duration cacheMissCacheTime, URL jwkUrl, Clock clock) Deprecated.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.ModifierConstructorDescriptionJwksStore
(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.oauth2.core
Modifier and TypeMethodDescriptionTrustedJwtIssuerConfig.getJwksCacheMissTimeout()
The duration to retain the failure to obtain a JWK Set from theTrustedJwtIssuerConfig.getJwksUri()
in the cache.TrustedJwtIssuerConfig.getJwksCacheTimeout()
The duration to retain the JWK Set obtained from theTrustedJwtIssuerConfig.getJwksUri()
in the cache. -
Uses of Duration in org.forgerock.opendj.ldap
Modifier and TypeFieldDescriptionLdapClients.CONNECT_TIMEOUT
Specifies the connect timeout.LdapClients.CONNECTION_POOL_IDLE_TIMEOUT
The time interval after which idle connections can be closed, shrinking the connection pool towards theminimum size
.LdapClients.LDAP_CLIENT_KEEP_ALIVE_INTERVAL
Specifies the time between successive keep-alives (default interval is 300 seconds).LdapClients.LDAP_CLIENT_KEEP_ALIVE_TIMEOUT
Specifies the timeout for keep-alives, after which the remote Directory Server will be deemed to be disconnected (default timeout is 3 seconds).LdapClients.LDAP_CLIENT_REQUEST_TIMEOUT
Specifies the operation timeout.LdapClients.LOAD_BALANCER_AVAILABILITY_CHECK_INTERVAL
Specifies the time between successive availability check requests (default interval is 5 seconds).LdapClients.LOAD_BALANCER_AVAILABILITY_CHECK_TIMEOUT
Specifies the timeout for availability checks, after which the remote Directory Server will be deemed to be unavailable (default timeout is 3 seconds).CommonLdapOptions.WRITE_TIMEOUT
Maximum time allowed for write operations to complete.CommonLdapOptions.WRITE_TIMEOUT
Maximum time allowed for write operations to complete.CommonLdapOptions.WRITE_TIMEOUT
Maximum time allowed for write operations to complete.ModifierConstructorDescriptionTimeoutScheduler
(com.forgerock.opendj.util.ReferenceCountedObject.Reference<ScheduledExecutorService> scheduler, Duration period) Creates a newTimeoutScheduler
. -
Uses of Duration in org.forgerock.util
Modifier and TypeMethodDescriptionPerItemEvictionStrategyCache.getMaxTimeout()
Gets the maximum timeout (can be null).Modifier and TypeMethodDescriptionvoid
PerItemEvictionStrategyCache.setMaxTimeout
(Duration maxTimeout) Sets the maximum timeout.Modifier and TypeMethodDescriptionPerItemEvictionStrategyCache.getValue
(K key, Callable<V> callable, AsyncFunction<V, Duration, E> expire) Borrow (and create before hand if absent) a cache entry.ModifierConstructorDescriptionPerItemEvictionStrategyCache
(ScheduledExecutorService executorService, Duration defaultTimeout) Build a newPerItemEvictionStrategyCache
using the given scheduled executor.ModifierConstructorDescriptionPerItemEvictionStrategyCache
(ScheduledExecutorService executorService, AsyncFunction<V, Duration, Exception> defaultTimeoutFunction) Build a newPerItemEvictionStrategyCache
using the given scheduled executor. -
Uses of Duration in org.forgerock.util.time
Modifier and TypeFieldDescriptionstatic final Duration
Duration.UNLIMITED
Special duration that represents an unlimited duration (or indefinite).static final Duration
Duration.ZERO
Special duration that represents a zero-length duration.
JwksStoreService.configureJwksStore(String, Duration, Duration, URL, Clock)
with an explicit clock.