Class LoopDetectionPredicate

    • Field Detail

      • log

        @Nonnull
        private final org.slf4j.Logger log
        Class logger.
      • threshold

        private long threshold
        Count to trigger warning.
    • Constructor Detail

      • LoopDetectionPredicate

        public LoopDetectionPredicate()
        Constructor.
    • Method Detail

      • setThreshold

        public void setThreshold​(@Positive
                                 long value)
        Set the warning threshold for the 1 minute moving average to exceed.

        Defaults to 20.

        Parameters:
        value - threshold to use
      • setRelyingPartyMap

        public void setRelyingPartyMap​(@Nullable @NonnullElements
                                       Map<String,​String> map)
        Set the map of relying party names to meter names to track counts.
        Parameters:
        map - map of RP/meter mappings
      • setUsernameLookupStrategy

        public void setUsernameLookupStrategy​(@Nonnull
                                              Function<ProfileRequestContext,​String> strategy)
        Set lookup strategy to obtain username.
        Parameters:
        strategy - lookup strategy