Uses of Class
org.forgerock.util.time.Duration
Packages that use Duration
Package
Description
Provides an API for the traversal and manipulation of JSON object model structures in Java.
Provides common interfaces and classes.
Provides a time service abstraction.
-
Uses of Duration in org.forgerock.json
Methods in org.forgerock.json that return types with arguments of type Duration -
Uses of Duration in org.forgerock.util
Methods in org.forgerock.util that return DurationModifier and TypeMethodDescriptionPerItemEvictionStrategyCache.getMaxTimeout()
Gets the maximum timeout (can be null).Methods in org.forgerock.util with parameters of type DurationModifier and TypeMethodDescriptionvoid
PerItemEvictionStrategyCache.setMaxTimeout
(Duration maxTimeout) Sets the maximum timeout.Method parameters in org.forgerock.util with type arguments of type DurationModifier and TypeMethodDescriptionPerItemEvictionStrategyCache.getValue
(K key, Callable<V> callable, AsyncFunction<V, Duration, Exception> expire) Borrow (and create before hand if absent) a cache entry.Constructors in org.forgerock.util with parameters of type DurationModifierConstructorDescriptionPerItemEvictionStrategyCache
(ScheduledExecutorService executorService, Duration defaultTimeout) Build a newPerItemEvictionStrategyCache
using the given scheduled executor.Constructor parameters in org.forgerock.util with type arguments of type DurationModifierConstructorDescriptionPerItemEvictionStrategyCache
(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 DurationModifier 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.Methods in org.forgerock.util.time that return DurationModifier and TypeMethodDescriptionConvert the current duration to a givenTimeUnit
.static Duration
Provides aDuration
, given a number and time unit.static Duration
Provides aDuration
that represents the given duration expressed in english.Methods in org.forgerock.util.time with parameters of type Duration