Package org.forgerock.http.filter.throttling
This package contains the components used to implement a throttling rate support.
-
Interface Summary Interface Description ThrottlingPolicy This interface defines the contract to lookup aThrottlingRatethat will be applied to the givenRequest.ThrottlingStrategy This interface defines the contract for any throttling strategy. -
Class Summary Class Description DefaultRateThrottlingPolicy ADefaultRateThrottlingPolicyis a delegatingThrottlingPolicythat ensures the returnedThrottlingRateis never null.FixedRateThrottlingPolicy An implementation of theThrottlingPolicythat always returns the same throtlling rate.MappedThrottlingPolicy Implementation ofThrottlingPolicybacked by aMap.ThrottlingFilter 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.ThrottlingRate A value object to represent a throttling rate.TokenBucketThrottlingStrategy The rate limiting is implemented as a token bucket strategy that gives us the ability to handle rate limits through a sliding window.