Uses of Class
org.forgerock.util.time.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
Modifier 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
Modifier and TypeMethodDescriptionBufferedBatchPublisher.Builder.writeInterval
(Duration writeInterval) The interval duration between each write. -
Uses of Duration in org.forgerock.audit.handlers.csv
Modifier and TypeMethodDescriptionCsvAuditEventHandlerConfiguration.CsvSecurity.getSignatureIntervalDuration()
Get'sCsvAuditEventHandlerConfiguration.CsvSecurity.getSignatureInterval()
value as aDuration
. -
Uses of Duration in org.forgerock.audit.rotation
Modifier and TypeMethodDescriptionTimeLimitRotationPolicy.getRotationInterval()
Gets the rotation duration interval.Modifier and TypeMethodDescriptionFixedTimeRotationPolicy.getDailyRotationTimes()
Get the list of times since midnight that rotation will occur at.ModifierConstructorDescriptionTimeLimitRotationPolicy
(Duration rotationInterval) Constructs a TimeLimitRotationPolicy with a givenDuration
.ModifierConstructorDescriptionFixedTimeRotationPolicy
(List<Duration> rotationTimes) Constructs aFixedTimeRotationPolicy
given a list of milliseconds after midnight to rotateIfNeeded the files. -
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.openig.filter
Modifier and TypeMethodDescriptionSet the delay between each tries. -
Uses of Duration in org.forgerock.openig.filter.oauth2
Modifier 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
.ModifierConstructorDescriptionBuilder
(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
Modifier and TypeMethodDescriptionThrottlingRate.getDuration()
Returns the duration of the sliding window.ModifierConstructorDescriptionTokenBucketThrottlingStrategy
(com.google.common.base.Ticker ticker, ScheduledExecutorService scheduledExecutor, Duration cleaningInterval) Constructs a newTokenBucketThrottlingStrategy
. -
Uses of Duration in org.forgerock.openig.tools
ModifierConstructorDescriptionCachePolicyDecisionFilter
(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
Modifier 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
Modifier and TypeMethodDescriptionWebSocketAdapterConfiguration.getHeartbeatInterval()
The interval between heartbeats.Modifier 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.ModifierConstructorDescriptionNotificationServiceImpl
(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
Modifier 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
ModifierConstructorDescriptionCacheSessionService
(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
ModifierConstructorDescriptionCacheUserProfileService
(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
Modifier and TypeFieldDescriptionstatic final org.forgerock.openig.model.type.StringTypeDefinition<Duration>
TypeDefinitions.DURATION_TYPE
Represents the "Duration" type, which is a String with a specificSyntax
. -
Uses of Duration in org.forgerock.openig.util
Modifier 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
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.