Uses of Class
org.forgerock.util.time.Duration
-
Packages that use Duration Package Description org.forgerock.am.cts.api.filter org.forgerock.http.handler CoreHandlerimplementations.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 DurationTokenFilter. 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 voidTokenFilter. setTimeLimit(Duration timeLimit)Set the time limit of the query.TokenFilterBuilderTokenFilterBuilder. 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_TIMEOUTThe TCP connect timeout for new HTTP connections.static Option<Duration>HttpClientHandler. OPTION_SO_TIMEOUTThe 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 DurationJwksStoreService. JWKS_STORE_DEFAULT_CACHE_MISS_CACHE_TIME_MSThe default cache time before reload the cache in case of cache miss ms.static DurationJwksStoreService. JWKS_STORE_DEFAULT_CACHE_TIMEOUT_MSThe default cache timeout in ms.Methods in org.forgerock.json.jose.jwk.store that return Duration Modifier and Type Method Description DurationJwksStore. getCacheMissCacheTime()Get the cache time before reloading the cache in case of cache miss.DurationJwksStore. getCacheTimeout()Get the cache timeout.Methods in org.forgerock.json.jose.jwk.store with parameters of type Duration Modifier and Type Method Description JwksStoreJwksStoreService. configureJwksStore(String uid, Duration cacheTimeout, Duration cacheMissCacheTime, URL jwkUrl)Deprecated.UseJwksStoreService.configureJwksStore(String, Duration, Duration, URL, Clock)with an explicit clock.JwksStoreJwksStoreService. 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.voidJwksStore. setCacheMissCacheTime(Duration cacheMissCacheTime)Update the cache time before reloading the cache in case of cache miss.voidJwksStore. 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>CommonLdapOptions. CONNECT_TIMEOUTSpecifies the connect timeout.static Option<Duration>CommonLdapOptions. CONNECT_TIMEOUTSpecifies the connect timeout.static Option<Duration>CommonLdapOptions. CONNECT_TIMEOUTSpecifies the connect timeout.static Option<Duration>LdapClients. CONNECTION_POOL_IDLE_TIMEOUTThe time interval after which idle connections can be closed, shrinking the connection pool towards theminimum size.static Option<Duration>LdapClients. LDAP_CLIENT_KEEP_ALIVE_INTERVALSpecifies the time between successive keep-alives (default interval is 300 seconds).static Option<Duration>LdapClients. LDAP_CLIENT_KEEP_ALIVE_TIMEOUTSpecifies the timeout for keep-alives, after which the remote Directory Server will be deemed to be disconnected (default timeout is 3 seconds).static Option<Duration>LdapClients. LDAP_CLIENT_REQUEST_TIMEOUTSpecifies the operation timeout.static Option<Duration>LdapClients. LOAD_BALANCER_AVAILABILITY_CHECK_INTERVALSpecifies the time between successive availability check requests (default interval is 5 seconds).static Option<Duration>LdapClients. LOAD_BALANCER_AVAILABILITY_CHECK_TIMEOUTSpecifies the timeout for availability checks, after which the remote Directory Server will be deemed to be unavailable (default timeout is 3 seconds).static Option<Duration>CommonLdapOptions. WRITE_TIMEOUTMaximum time allowed for write operations to complete.static Option<Duration>CommonLdapOptions. WRITE_TIMEOUTMaximum time allowed for write operations to complete.static Option<Duration>CommonLdapOptions. WRITE_TIMEOUTMaximum time allowed for write operations to complete.Constructors in org.forgerock.opendj.ldap with parameters of type Duration Constructor Description TimeoutScheduler(com.forgerock.opendj.util.ReferenceCountedObject.Reference<ScheduledExecutorService> scheduler, Duration period)Creates a newTimeoutScheduler. -
Uses of Duration in org.forgerock.util
Methods in org.forgerock.util that return Duration Modifier and Type Method Description DurationPerItemEvictionStrategyCache. getMaxTimeout()Gets the maximum timeout (can be null).Methods in org.forgerock.util with parameters of type Duration Modifier and Type Method Description voidPerItemEvictionStrategyCache. 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 newPerItemEvictionStrategyCacheusing 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 newPerItemEvictionStrategyCacheusing 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 DurationDuration. UNLIMITEDSpecial duration that represents an unlimited duration (or indefinite).static DurationDuration. ZEROSpecial duration that represents a zero-length duration.Methods in org.forgerock.util.time that return Duration Modifier and Type Method Description DurationDuration. convertTo(TimeUnit targetUnit)Convert the current duration to a givenTimeUnit.static DurationDuration. duration(long number, TimeUnit unit)Provides aDuration, given a number and time unit.static DurationDuration. duration(String value)Provides aDurationthat represents the given duration expressed in english.Methods in org.forgerock.util.time with parameters of type Duration Modifier and Type Method Description intDuration. compareTo(Duration that)
-