Class CachePolicyDecisionFilter

java.lang.Object
org.forgerock.openig.tools.NotSupportedFilter
org.forgerock.openig.tools.CachePolicyDecisionFilter
All Implemented Interfaces:
AutoCloseable, Filter

public class CachePolicyDecisionFilter extends NotSupportedFilter implements AutoCloseable
A CREST Filter that caches policy decisions.
  • Constructor Details

    • CachePolicyDecisionFilter

      public CachePolicyDecisionFilter(com.github.benmanes.caffeine.cache.Caffeine<Object,Object> caffeine, Clock clock, Duration defaultTimeout, Duration maximumTimeout, NotificationService notificationService, DisconnectionStrategy disconnectionStrategy)
      Builds a CachePolicyDecisionFilter.
      Parameters:
      caffeine - The caffeine cache to use. Not null.
      clock - A clock providing access to the current instant, date and time using a time-zone, not null.
      defaultTimeout - The default duration for which to cache AM policy decisions. If an AM policy decision provides a valid ttl value to specify the time until which the policy decision remains valid, IG uses that value or the maxTimeout.
      maximumTimeout - The maximum duration for which to cache AM policy decisions. If the ttl value provided by the AM policy decision is after the current time plus the maxTimeout, IG uses the maxTimeout. Can be null.
      notificationService - The notification service used to connect on AM websocket notifications.
      disconnectionStrategy - The strategy to apply in case of notifications' disconnection.
      Throws:
      NullPointerException - If caffeine or clock are null.
  • Method Details