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 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.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.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.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.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 DurationCommonAuditBatchConfiguration. POLLING_INTERVALCommon 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.BuilderBufferedBatchPublisher.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 DurationCsvAuditEventHandlerConfiguration.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 DurationTimeLimitRotationPolicy. 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 aFixedTimeRotationPolicygiven 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_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.openig.filter
Methods in org.forgerock.openig.filter with parameters of type Duration Modifier and Type Method Description RetryFilter.BuilderRetryFilter.Builder. delay(Duration delay) -
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.BuilderCaffeineCacheAccessTokenResolver. builder(com.github.benmanes.caffeine.cache.Caffeine<Object,Object> caffeine, AccessTokenResolver delegate, Clock clock, Duration defaultTimeout, Duration maximumTimeout)Creates aCaffeineCacheAccessTokenResolver.Builderto 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.Builderdelegating to the givenAccessTokenResolverusing 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 DurationThrottlingRate. 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.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 AmService.BuilderAmService.Builder. notificationServiceHeartbeat(Duration interval, ScheduledExecutorService executorService)Set up heartbeats sent to AM to keep the connection busy.AmService.BuilderAmService.Builder. notificationServiceReconnectDelay(Duration delay)Specifies the delay to wait between connection re-establishments when web-socket connection is lost (or cannot be acquired at startup).AmService.BuilderAmService.Builder. sessionCache(com.github.benmanes.caffeine.cache.Caffeine<Object,Object> caffeine, Duration maximumTimeout, DisconnectionStrategy disconnectionStrategy)Specifies theCaffeinecache for theCacheSessionService.AmService.BuilderAmService.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 DurationWebSocketAdapterConfiguration. getHeartbeatInterval()The interval between heartbeats.DurationWebSocketAdapterConfiguration. getReconnectDelay()The delay after which a reconnect will be attempted.Methods in org.forgerock.openig.tools.notifications.ws with parameters of type Duration Modifier and Type Method Description WebSocketAdapterConfigurationWebSocketAdapterConfiguration. heartbeat(Duration interval, ScheduledExecutorService executorService)Supply The heartbeat setup to keep the websocket session busy.WebSocketAdapterConfigurationWebSocketAdapterConfiguration. reconnect(Duration reconnectDelay, int initialConnectionAttempts)Supply reconnect configuration to support reconnection attempts should the websocket be terminated remotely.Constructors in org.forgerock.openig.tools.notifications.ws with parameters of type Duration Constructor Description NotificationServiceImpl(HttpWebSocketClient client, URI uri, IdGenerator idGenerator, String ssoTokenHeader, AsyncRefreshableSupplier<SsoToken,AuthenticationException> tokenProvider, Duration reconnectDelay, int initialConnectionAttempts, Duration heartbeatInterval, ScheduledExecutorService heartbeatExecutorService)Constructs aNotificationServiceimplementation. -
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, 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_TYPERepresents 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 textualDurationas aStringValue.static org.forgerock.openig.model.component.StringValue<Duration>Values. duration(Duration duration)Wrap aDurationas 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 aDurationas aStringValue. -
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)
-