Interface ThrottlingPolicy
-
- All Known Implementing Classes:
DefaultRateThrottlingPolicy,FixedRateThrottlingPolicy,MappedThrottlingPolicy,ScriptableThrottlingPolicy
public interface ThrottlingPolicyThis interface defines the contract to lookup aThrottlingRatethat will be applied to the givenRequest.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.forgerock.util.promise.Promise<ThrottlingRate,Exception>lookup(org.forgerock.services.context.Context context, org.forgerock.http.protocol.Request request)Returns theThrottlingRatethat should be used for the provided request.
-
-
-
Method Detail
-
lookup
org.forgerock.util.promise.Promise<ThrottlingRate,Exception> lookup(org.forgerock.services.context.Context context, org.forgerock.http.protocol.Request request)
Returns theThrottlingRatethat should be used for the provided request.- Parameters:
context- The current context which might be used to retrieve the throttling rate.request- The current request which might be used to retrieve the throttling rate.- Returns:
- A
Promiserepresenting theThrottlingRatethat should be used for the request.
-
-