Class BaseMappableThrottledSubmissionsStore<T extends org.apereo.cas.web.support.ThrottledSubmission>

java.lang.Object
org.apereo.cas.throttle.BaseMappableThrottledSubmissionsStore<T>
All Implemented Interfaces:
org.apereo.cas.web.support.ThrottledSubmissionsStore<T>
Direct Known Subclasses:
ConcurrentThrottledSubmissionsStore

public abstract class BaseMappableThrottledSubmissionsStore<T extends org.apereo.cas.web.support.ThrottledSubmission> extends Object implements org.apereo.cas.web.support.ThrottledSubmissionsStore<T>
Since:
6.5.0
  • Constructor Details

    • BaseMappableThrottledSubmissionsStore

      public BaseMappableThrottledSubmissionsStore(Map<String,T> backingMap, org.apereo.cas.configuration.CasConfigurationProperties casProperties)
  • Method Details

    • removeIf

      public void removeIf(Predicate<T> condition)
      Specified by:
      removeIf in interface org.apereo.cas.web.support.ThrottledSubmissionsStore<T extends org.apereo.cas.web.support.ThrottledSubmission>
    • remove

      public void remove(String key)
      Specified by:
      remove in interface org.apereo.cas.web.support.ThrottledSubmissionsStore<T extends org.apereo.cas.web.support.ThrottledSubmission>
    • put

      public void put(T submission)
      Specified by:
      put in interface org.apereo.cas.web.support.ThrottledSubmissionsStore<T extends org.apereo.cas.web.support.ThrottledSubmission>
    • contains

      public boolean contains(String key)
      Specified by:
      contains in interface org.apereo.cas.web.support.ThrottledSubmissionsStore<T extends org.apereo.cas.web.support.ThrottledSubmission>
    • get

      public T get(String key)
      Specified by:
      get in interface org.apereo.cas.web.support.ThrottledSubmissionsStore<T extends org.apereo.cas.web.support.ThrottledSubmission>
    • entries

      public Stream<T> entries()
      Specified by:
      entries in interface org.apereo.cas.web.support.ThrottledSubmissionsStore<T extends org.apereo.cas.web.support.ThrottledSubmission>
    • exceedsThreshold

      public boolean exceedsThreshold(String key, double thresholdRate)
      Specified by:
      exceedsThreshold in interface org.apereo.cas.web.support.ThrottledSubmissionsStore<T extends org.apereo.cas.web.support.ThrottledSubmission>
    • clear

      public void clear()
      Specified by:
      clear in interface org.apereo.cas.web.support.ThrottledSubmissionsStore<T extends org.apereo.cas.web.support.ThrottledSubmission>
    • release

      public void release(double thresholdRate)
      Specified by:
      release in interface org.apereo.cas.web.support.ThrottledSubmissionsStore<T extends org.apereo.cas.web.support.ThrottledSubmission>