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
DefaultRateThrottlingPolicyis a delegatingThrottlingPolicythat ensures the returnedThrottlingRateis never null.Creates and initializes aDefaultRateThrottlingPolicyin a heap environment.ProvideDefaultRateThrottlingPolicyHeaplet'sTypeDefinition.An implementation of theThrottlingPolicythat always returns the same throttling rate.Implementation ofThrottlingPolicybacked by aMap.Creates and initializes aMappedThrottlingPolicyin a heap environment.ProvideMappedThrottlingPolicyHeaplet'sTypeDefinition.A scriptable throttling datasource.Creates and initializes a scriptable object in a heap environment.ProvideScriptableThrottlingPolicy'sTypeDefinition.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.ProvideThrottlingFilterHeaplet'sTypeDefinition.This interface defines the contract to lookup aThrottlingRatethat 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.