Class MappedThrottlingPolicy

java.lang.Object
org.forgerock.openig.filter.throttling.MappedThrottlingPolicy
All Implemented Interfaces:
ThrottlingPolicy

public class MappedThrottlingPolicy extends Object implements ThrottlingPolicy
Implementation of ThrottlingPolicy backed by a Map.
  • if the key is null, then the defaultRate is returned
  • if the key can be looked up as key in the throttlingRatesMapping, then the matching rate is returned
  • if the key can't be looked up in the throttlingRatesMapping, then the defaultRate is returned