Package | Description |
---|---|
org.forgerock.http.filter.throttling |
This package contains the components used to implement a throttling rate support.
|
org.forgerock.openig.filter.throttling |
This package contains the components used to implement a throttling rate support.
|
Modifier and Type | Method and Description |
---|---|
Promise<ThrottlingRate,Exception> |
ThrottlingPolicy.lookup(Context context,
Request request)
Returns the
ThrottlingRate that should be used for the provided request. |
Promise<ThrottlingRate,Exception> |
MappedThrottlingPolicy.lookup(Context context,
Request request) |
Promise<ThrottlingRate,Exception> |
FixedRateThrottlingPolicy.lookup(Context context,
Request request) |
Promise<ThrottlingRate,Exception> |
DefaultRateThrottlingPolicy.lookup(Context context,
Request request) |
Modifier and Type | Method and Description |
---|---|
Promise<Long,NeverThrowsException> |
TokenBucketThrottlingStrategy.throttle(String partitionKey,
ThrottlingRate throttlingRate) |
Promise<Long,NeverThrowsException> |
ThrottlingStrategy.throttle(String partitionKey,
ThrottlingRate throttlingRate)
Based on the given partitionKey and throttlingRate, return if the call is accepted or not.
|
Constructor and Description |
---|
DefaultRateThrottlingPolicy(ThrottlingRate defaultRate,
ThrottlingPolicy delegate)
Constructs a new
DefaultRateThrottlingPolicy . |
FixedRateThrottlingPolicy(ThrottlingRate rate)
Constructs a new throttling policy that always returns the same throttling rate.
|
MappedThrottlingPolicy(AsyncFunction<ContextAndRequest,String,Exception> throttlingRateMapper,
Map<String,ThrottlingRate> throttlingRatesMapping,
ThrottlingRate defaultRate)
Constructs a new
MappedThrottlingPolicy . |
Constructor and Description |
---|
MappedThrottlingPolicy(AsyncFunction<ContextAndRequest,String,Exception> throttlingRateMapper,
Map<String,ThrottlingRate> throttlingRatesMapping,
ThrottlingRate defaultRate)
Constructs a new
MappedThrottlingPolicy . |
Modifier and Type | Method and Description |
---|---|
Promise<ThrottlingRate,Exception> |
ScriptableThrottlingPolicy.lookup(Context context,
Request request) |
Copyright 2011-2015 ForgeRock AS.