Package org.forgerock.openig.filter.throttling
package org.forgerock.openig.filter.throttling
This package contains the components used to implement a throttling rate support.
-
ClassDescriptionA
DefaultRateThrottlingPolicy
is a delegatingThrottlingPolicy
that ensures the returnedThrottlingRate
is never null.Creates and initializes aDefaultRateThrottlingPolicy
in a heap environment.An implementation of theThrottlingPolicy
that always returns the same throtlling rate.Implementation ofThrottlingPolicy
backed by aMap
.Creates and initializes aMappedThrottlingPolicy
in a heap environment.A scriptable throttling datasource.Creates and initializes a scriptable object in a heap environment.This filter applies a rate limitation to incoming requests : over the limit requests will be rejected with a 429 (Too Many Requests) response, others will pass through.Creates and initializes a throttling filter in a heap environment.This interface defines the contract to lookup aThrottlingRate
that will be applied to the givenRequest
.A value object to represent a throttling rate.This interface defines the contract for any throttling strategy.The rate limiting is implemented as a token bucket strategy that gives us the ability to handle rate limits through a sliding window.