Uses of Class
org.forgerock.util.time.Duration
-
Packages that use Duration Package Description org.forgerock.audit.batch Package contains common audit batch configuration files.org.forgerock.audit.events.handlers.buffering This package contains the batch publisher and its various implementations.org.forgerock.audit.handlers.csv This package contains the default AuditEventHandler implementations.org.forgerock.audit.rotation Audit log file rotation classes.org.forgerock.http.handler CoreHandler
implementations.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.openig.filter Filters the requests and/or responses of HTTP.org.forgerock.openig.filter.oauth2 This package contains the OAuth2 Token validation filter that acts as an OAuth 2 Resource Server.org.forgerock.openig.filter.throttling This package contains the components used to implement a throttling rate support.org.forgerock.openig.secrets Provides the Common Secrets API for accessing secrets of various kinds.org.forgerock.openig.tools Common tools used in policy service.org.forgerock.openig.tools.am Access Management Server.org.forgerock.openig.tools.notifications.ws Web socket notifications service implementation.org.forgerock.openig.tools.notifications.ws.link AM Links implementations.org.forgerock.openig.tools.session This package contains classes to call AM to retrieve user's session info.org.forgerock.openig.tools.userprofile This package contains classes to call AM to retrieve user's profile info.org.forgerock.openig.types Contains everything commonly used to work withTypeDefinition
.org.forgerock.openig.util Miscellaneous utility classes.org.forgerock.util Provides common interfaces and classes.org.forgerock.util.time Provides a time service abstraction. -
-
Uses of Duration in org.forgerock.audit.batch
Fields in org.forgerock.audit.batch declared as Duration Modifier and Type Field Description static 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 Duration Modifier and Type Method Description BufferedBatchPublisher.Builder
BufferedBatchPublisher.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 Duration Modifier and Type Method Description Duration
CsvAuditEventHandlerConfiguration.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 Duration Modifier and Type Method Description Duration
TimeLimitRotationPolicy. getRotationInterval()
Gets the rotation duration interval.Methods in org.forgerock.audit.rotation that return types with arguments of type Duration Modifier and Type Method Description List<Duration>
FixedTimeRotationPolicy. getDailyRotationTimes()
Get the list of times since midnight that rotation will occur at.Constructors in org.forgerock.audit.rotation with parameters of type Duration Constructor Description TimeLimitRotationPolicy(Duration rotationInterval)
Constructs a TimeLimitRotationPolicy with a givenDuration
.Constructor parameters in org.forgerock.audit.rotation with type arguments of type Duration Constructor Description FixedTimeRotationPolicy(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 Duration Modifier and Type Field Description static Option<Duration>
HttpClientHandler. OPTION_CONNECT_TIMEOUT
The TCP connect timeout for new HTTP connections.static Option<Duration>
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 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 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 Duration
JwksStoreService. JWKS_STORE_DEFAULT_CACHE_TIMEOUT_MS
The default cache timeout in ms.Methods in org.forgerock.json.jose.jwk.store that return Duration Modifier and Type Method Description Duration
JwksStore. getCacheMissCacheTime()
Get the cache time before reloading the cache in case of cache miss.Duration
JwksStore. getCacheTimeout()
Get the cache timeout.Methods in org.forgerock.json.jose.jwk.store with parameters of type Duration Modifier and Type Method Description JwksStore
JwksStoreService. configureJwksStore(String uid, Duration cacheTimeout, Duration cacheMissCacheTime, URL jwkUrl)
Deprecated.UseJwksStoreService.configureJwksStore(String, Duration, Duration, URL, Clock)
with an explicit clock.JwksStore
JwksStoreService. 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.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 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.openig.filter
Methods in org.forgerock.openig.filter with parameters of type Duration Modifier and Type Method Description RetryFilter.Builder
RetryFilter.Builder. delay(Duration delay)
Set the delay between each tries.Constructors in org.forgerock.openig.filter with parameters of type Duration Constructor Description DataPreservationFilter(String noJavaScriptMessage, int maxContentLength, Randoms.UrlFriendlyRandomStringGenerator randomGenerator, Duration lifetime, Clock clock)
Creates a newDataPreservationFilter
. -
Uses of Duration in org.forgerock.openig.filter.oauth2
Methods in org.forgerock.openig.filter.oauth2 with parameters of type Duration Modifier and Type Method Description static CaffeineCacheAccessTokenResolver.Builder
CaffeineCacheAccessTokenResolver. 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 Duration Constructor Description Builder(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 Duration Modifier and Type Method Description Duration
ThrottlingRate. getDuration()
Returns the duration of the sliding window.Constructors in org.forgerock.openig.filter.throttling with parameters of type Duration Constructor Description TokenBucketThrottlingStrategy(com.google.common.base.Ticker ticker, ScheduledExecutorService scheduledExecutor, Duration cleaningInterval)
Constructs a newTokenBucketThrottlingStrategy
. -
Uses of Duration in org.forgerock.openig.secrets
Fields in org.forgerock.openig.secrets declared as Duration Modifier and Type Field Description static Duration
SecretsUtils. DEFAULT_LEASE_EXPIRY_DURATION
The default duration used to for lease expiry where not supplied or the supplied duration is not acceptable. -
Uses of Duration in org.forgerock.openig.tools
Constructors in org.forgerock.openig.tools with parameters of type Duration Constructor Description CachePolicyDecisionFilter(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 Duration Modifier and Type Method Description NotificationsConfig.Builder
NotificationsConfig.Builder. connectionTimeout(Duration timeout)
Set the connection timeout of the websocket.NotificationsConfig.Builder
NotificationsConfig.Builder. heartbeat(Duration interval, ScheduledExecutorService executorService)
Set the interval and executorService which will be used to send Websocket heartbeats.NotificationsConfig.Builder
NotificationsConfig.Builder. idleTimeout(Duration timeout)
Set the idle timeout of the Websocket connection.NotificationsConfig.Builder
NotificationsConfig.Builder. reconnectDelay(Duration reconnectDelay)
Set the reconnection delay used when notification service is disconnected.NotificationsConfig.Builder
NotificationsConfig.Builder. renewalDelay(Duration renewalDelay)
Set the renewal delay of the websocket connection.AmService.Builder
AmService.Builder. sessionCache(com.github.benmanes.caffeine.cache.Caffeine<Object,Object> caffeine, Duration maximumTimeout, DisconnectionStrategy disconnectionStrategy)
Specifies theCaffeine
cache for theCacheSessionService
.AmService.Builder
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 Duration Modifier and Type Method Description Duration
WebSocketAdapterConfiguration. getHeartbeatInterval()
The interval between heartbeats.Methods in org.forgerock.openig.tools.notifications.ws with parameters of type Duration Modifier and Type Method Description WebSocketAdapterConfiguration
WebSocketAdapterConfiguration. heartbeat(Duration interval, ScheduledExecutorService executorService)
Supply The heartbeat setup to keep the websocket session busy.HttpWebSocketClient
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 Duration Constructor Description NotificationServiceImpl(HttpWebSocketClient client, URI uri, String ssoTokenHeader, AsyncRefreshableSupplier<SsoToken,AuthenticationException> tokenProvider, Duration reconnectDelay, int initialConnectionAttempts, Duration heartbeatInterval, ScheduledExecutorService heartbeatExecutor, Duration renewalDelay)
Constructs aNotificationService
implementation. -
Uses of Duration in org.forgerock.openig.tools.notifications.ws.link
-
Uses of Duration in org.forgerock.openig.tools.session
Constructors in org.forgerock.openig.tools.session with parameters of type Duration Constructor Description CacheSessionService(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 Duration Constructor Description CacheUserProfileService(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 Duration Modifier and Type Field Description static 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 Duration Modifier and Type Method Description static org.forgerock.openig.model.component.StringValue<Duration>
Values. duration(String duration)
Wrap a textualDuration
as aStringValue
.static org.forgerock.openig.model.component.StringValue<Duration>
Values. duration(Duration duration)
Wrap aDuration
as aStringValue
.Methods in org.forgerock.openig.types with parameters of type Duration Modifier and Type Method Description static org.forgerock.openig.model.component.StringValue<Duration>
Values. duration(Duration duration)
Wrap aDuration
as aStringValue
. -
Uses of Duration in org.forgerock.openig.util
Methods in org.forgerock.openig.util with parameters of type Duration Modifier and Type Method Description static Function<JsonValue,Duration,JsonValueException>
JsonValues. positiveLimitedDuration(Duration defaultDuration)
Transform duration configuration to aDuration
, enforcing that its value is positive (non-zero) and limited. -
Uses of Duration in org.forgerock.util
Methods in org.forgerock.util that return Duration Modifier and Type Method Description Duration
PerItemEvictionStrategyCache. getMaxTimeout()
Gets the maximum timeout (can be null).Methods in org.forgerock.util with parameters of type Duration Modifier and Type Method Description void
PerItemEvictionStrategyCache. 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 newPerItemEvictionStrategyCache
using 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 newPerItemEvictionStrategyCache
using 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 Duration
Duration. UNLIMITED
Special duration that represents an unlimited duration (or indefinite).static Duration
Duration. ZERO
Special duration that represents a zero-length duration.Methods in org.forgerock.util.time that return Duration Modifier and Type Method Description Duration
Duration. convertTo(TimeUnit targetUnit)
Convert the current duration to a givenTimeUnit
.static Duration
Duration. duration(long number, TimeUnit unit)
Provides aDuration
, given a number and time unit.static Duration
Duration. duration(String value)
Provides aDuration
that represents the given duration expressed in english.Methods in org.forgerock.util.time with parameters of type Duration Modifier and Type Method Description int
Duration. compareTo(Duration that)
-