Uses of Class
org.forgerock.util.time.Duration
Packages that use Duration
Package
Description
Package contains common audit batch configuration files.
This package contains the batch publisher and its various implementations.
This package contains the default AuditEventHandler implementations.
Audit log file rotation classes.
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.
Filters the requests and/or responses of HTTP.
This package contains the OAuth2 Token validation filter that acts as an OAuth 2 Resource Server.
This package contains the components used to implement a throttling rate support.
Common tools used in policy service.
Access Management Server.
Web socket notifications service implementation.
AM Links implementations.
This package contains classes to call AM to retrieve user's session info.
This package contains classes to call AM to retrieve user's profile info.
Contains everything commonly used to work with
TypeDefinition
.Miscellaneous utility classes.
Provides common interfaces and classes.
Provides a time service abstraction.
-
Uses of Duration in org.forgerock.audit.batch
Fields in org.forgerock.audit.batch declared as DurationModifier and TypeFieldDescriptionstatic final Duration
CommonAuditBatchConfiguration.POLLING_INTERVAL
Common Audit Batch log records queue polling timeout asDuration
. -
Uses of Duration in org.forgerock.audit.events.handlers.buffering
Methods in org.forgerock.audit.events.handlers.buffering with parameters of type DurationModifier and TypeMethodDescriptionBufferedBatchPublisher.Builder.writeInterval
(Duration writeInterval) The interval duration between each write. -
Uses of Duration in org.forgerock.audit.handlers.csv
Methods in org.forgerock.audit.handlers.csv that return DurationModifier and TypeMethodDescriptionCsvAuditEventHandlerConfiguration.CsvSecurity.getSignatureIntervalDuration()
Get'sCsvAuditEventHandlerConfiguration.CsvSecurity.getSignatureInterval()
value as aDuration
. -
Uses of Duration in org.forgerock.audit.rotation
Methods in org.forgerock.audit.rotation that return DurationModifier and TypeMethodDescriptionTimeLimitRotationPolicy.getRotationInterval()
Gets the rotation duration interval.Methods in org.forgerock.audit.rotation that return types with arguments of type DurationModifier and TypeMethodDescriptionFixedTimeRotationPolicy.getDailyRotationTimes()
Get the list of times since midnight that rotation will occur at.Constructors in org.forgerock.audit.rotation with parameters of type DurationModifierConstructorDescriptionTimeLimitRotationPolicy
(Duration rotationInterval) Constructs a TimeLimitRotationPolicy with a givenDuration
.Constructor parameters in org.forgerock.audit.rotation with type arguments of type DurationModifierConstructorDescriptionFixedTimeRotationPolicy
(List<Duration> rotationTimes) Constructs aFixedTimeRotationPolicy
given a list of milliseconds after midnight to rotateIfNeeded the files. -
Uses of Duration in org.forgerock.http.handler
Fields in org.forgerock.http.handler with type parameters of type DurationModifier 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
Methods in org.forgerock.json that return types with arguments of type Duration -
Uses of Duration in org.forgerock.json.jose.jwk.store
Fields in org.forgerock.json.jose.jwk.store declared as DurationModifier 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.Methods in org.forgerock.json.jose.jwk.store that return DurationModifier and TypeMethodDescriptionJwksStore.getCacheMissCacheTime()
Get the cache time before reloading the cache in case of cache miss.JwksStore.getCacheTimeout()
Get the cache timeout.Methods in org.forgerock.json.jose.jwk.store with parameters of type DurationModifier 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.Constructors in org.forgerock.json.jose.jwk.store with parameters of type DurationModifierConstructorDescriptionJwksStore
(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.openig.filter
Methods in org.forgerock.openig.filter with parameters of type DurationModifier and TypeMethodDescriptionSet the delay between each tries. -
Uses of Duration in org.forgerock.openig.filter.oauth2
Methods in org.forgerock.openig.filter.oauth2 with parameters of type DurationModifier and TypeMethodDescriptionCaffeineCacheAccessTokenResolver.builder
(com.github.benmanes.caffeine.cache.Caffeine<Object, Object> caffeine, AccessTokenResolver delegate, Clock clock, Duration defaultTimeout, Duration maximumTimeout) Creates aCaffeineCacheAccessTokenResolver.Builder
to be passed when creating a newCaffeineCacheAccessTokenResolver
.Constructors in org.forgerock.openig.filter.oauth2 with parameters of type DurationModifierConstructorDescriptionBuilder
(com.github.benmanes.caffeine.cache.Caffeine<Object, Object> caffeine, AccessTokenResolver delegate, Clock clock, Duration defaultTimeout, Duration maximumTimeout) Creates aCaffeineCacheAccessTokenResolver.Builder
delegating to the givenAccessTokenResolver
using the given (pre-configured) cache. -
Uses of Duration in org.forgerock.openig.filter.throttling
Methods in org.forgerock.openig.filter.throttling that return DurationModifier and TypeMethodDescriptionThrottlingRate.getDuration()
Returns the duration of the sliding window.Constructors in org.forgerock.openig.filter.throttling with parameters of type DurationModifierConstructorDescriptionTokenBucketThrottlingStrategy
(com.google.common.base.Ticker ticker, ScheduledExecutorService scheduledExecutor, Duration cleaningInterval) Constructs a newTokenBucketThrottlingStrategy
. -
Uses of Duration in org.forgerock.openig.tools
Constructors in org.forgerock.openig.tools with parameters of type DurationModifierConstructorDescriptionCachePolicyDecisionFilter
(com.github.benmanes.caffeine.cache.Caffeine<Object, Object> caffeine, Clock clock, Duration defaultTimeout, Duration maximumTimeout, NotificationService notificationService, DisconnectionStrategy disconnectionStrategy) Builds aCachePolicyDecisionFilter
. -
Uses of Duration in org.forgerock.openig.tools.am
Methods in org.forgerock.openig.tools.am with parameters of type DurationModifier and TypeMethodDescriptionNotificationsConfig.Builder.connectionTimeout
(Duration timeout) Set the connection timeout of the websocket.NotificationsConfig.Builder.heartbeat
(Duration interval, ScheduledExecutorService executorService) Set the interval and executorService which will be used to send Websocket heartbeats.NotificationsConfig.Builder.idleTimeout
(Duration timeout) Set the idle timeout of the Websocket connection.NotificationsConfig.Builder.reconnectDelay
(Duration reconnectDelay) Set the reconnection delay used when notification service is disconnected.NotificationsConfig.Builder.renewalDelay
(Duration renewalDelay) Set the renewal delay of the websocket connection.AmService.Builder.sessionCache
(com.github.benmanes.caffeine.cache.Caffeine<Object, Object> caffeine, Duration maximumTimeout, DisconnectionStrategy disconnectionStrategy) Specifies theCaffeine
cache for theCacheSessionService
.AmService.Builder.sessionIdleRefresh
(boolean enabled, Duration interval) Enable or disable the session idle refresh service and set the refresh interval. -
Uses of Duration in org.forgerock.openig.tools.notifications.ws
Methods in org.forgerock.openig.tools.notifications.ws that return DurationModifier and TypeMethodDescriptionWebSocketAdapterConfiguration.getHeartbeatInterval()
The interval between heartbeats.Methods in org.forgerock.openig.tools.notifications.ws with parameters of type DurationModifier and TypeMethodDescriptionWebSocketAdapterConfiguration.heartbeat
(Duration interval, ScheduledExecutorService executorService) Supply The heartbeat setup to keep the websocket session busy.WebSocketClientProvider.newClient
(ClientTlsOptions tlsOptions, ProxyOptions proxyOptions, Duration connectionTimeout, Duration idleTimeout, JsonValue vertxConfig) Creates a new WebSocket client.Constructors in org.forgerock.openig.tools.notifications.ws with parameters of type DurationModifierConstructorDescriptionNotificationServiceImpl
(HttpWebSocketClient client, URI uri, String ssoTokenHeader, AsyncRefreshableSupplier<SsoToken, AuthenticationException> tokenProvider, Duration reconnectDelay, int initialConnectionAttempts, Duration heartbeatInterval, ScheduledExecutorService heartbeatExecutor, Duration renewalDelay, org.forgerock.openig.tracing.TracingProvider tracingProvider) Constructs aNotificationService
implementation. -
Uses of Duration in org.forgerock.openig.tools.notifications.ws.link
Methods in org.forgerock.openig.tools.notifications.ws.link with parameters of type DurationModifier and TypeMethodDescriptionstatic AmLink.AmLinkSupplier
RetryableAmLink.asInfiniteRetrySupplier
(Duration delay, AsyncRefreshableSupplier<SsoToken, AuthenticationException> tokenProvider, RetryableAmLink.AmLinkSupplierFromToken amLinkSupplierFromToken, ScheduledExecutorService executor, org.forgerock.openig.tracing.TracingProvider tracingProvider) Builds a supplier ofRetryableAmLink
without any retry limit.AutoReconnectAmLink.asSupplier
(Duration reconnectDelay, AmLink.AmLinkSupplier initialAmLinkSupplier, AutoReconnectAmLink.AmLinkSupplierFromTopics amLinkSupplier, ScheduledExecutorService executorService) Builds a supplier ofAutoReconnectAmLink
.static AmLink.AmLinkSupplier
RetryableAmLink.asSupplier
(boolean stopOnSslFailure, int retryLimit, Duration delay, AsyncRefreshableSupplier<SsoToken, AuthenticationException> tokenProvider, RetryableAmLink.AmLinkSupplierFromToken amLinkSupplierFromToken, ScheduledExecutorService executor, org.forgerock.openig.tracing.TracingProvider tracingProvider) Builds a supplier ofRetryableAmLink
.static AmLink.AmLinkSupplier
PeriodicallyRenewedAmLink.periodicallyRenewedAmLinkSupplier
(Duration renewalDelay, PeriodicallyRenewedAmLink.AmLinkSupplierFromTopics amLinkSupplier, ScheduledExecutorService executorService) Builds a supplier ofPeriodicallyRenewedAmLink
. -
Uses of Duration in org.forgerock.openig.tools.session
Constructors in org.forgerock.openig.tools.session with parameters of type DurationModifierConstructorDescriptionCacheSessionService
(SessionService sessionService, NotificationService notificationService, String sessionNotificationTopic, com.github.benmanes.caffeine.cache.Caffeine<Object, Object> caffeine, Supplier<String> generator, Clock clock, Duration maximumTimeout, DisconnectionStrategy disconnectionStrategy, boolean sessionIdleRefreshEnabled) Creates a new CacheSessionService. -
Uses of Duration in org.forgerock.openig.tools.userprofile
Constructors in org.forgerock.openig.tools.userprofile with parameters of type DurationModifierConstructorDescriptionCacheUserProfileService
(UserProfileService userProfileService, com.github.benmanes.caffeine.cache.Caffeine<Object, Object> caffeine, Duration maximumTimeout) Creates a new CacheUserProfileService. -
Uses of Duration in org.forgerock.openig.types
Fields in org.forgerock.openig.types with type parameters of type DurationModifier and TypeFieldDescriptionstatic final org.forgerock.openig.model.type.StringTypeDefinition<Duration>
TypeDefinitions.DURATION_TYPE
Represents the "Duration" type, which is a String with a specificSyntax
.Methods in org.forgerock.openig.types that return types with arguments of type DurationModifier and TypeMethodDescriptionstatic org.forgerock.openig.model.component.StringValue<Duration>
Wrap a textualDuration
as aStringValue
.static org.forgerock.openig.model.component.StringValue<Duration>
Wrap aDuration
as aStringValue
.Methods in org.forgerock.openig.types with parameters of type Duration -
Uses of Duration in org.forgerock.openig.util
Methods in org.forgerock.openig.util with parameters of type DurationModifier and TypeMethodDescriptionstatic Function<JsonValue,
Duration, JsonValueException> JsonValues.limitedDuration
(Duration defaultDuration) Transform duration configuration to aDuration
, ensuring its value is limited.static Function<JsonValue,
Duration, JsonValueException> JsonValues.positiveLimitedDuration
(Duration defaultDuration) Transform duration configuration to aDuration
, ensuring its value is positive and limited. -
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, E> 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
JwksStoreService.configureJwksStore(String, Duration, Duration, URL, Clock)
with an explicit clock.