Class DefaultRateThrottlingPolicy

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

public class DefaultRateThrottlingPolicy extends Object implements ThrottlingPolicy
A DefaultRateThrottlingPolicy is a delegating ThrottlingPolicy that ensures the returned ThrottlingRate is never null. If the delegated ThrottlingPolicy returns null, then it returns the specified default rate.
  • Constructor Details

    • DefaultRateThrottlingPolicy

      public DefaultRateThrottlingPolicy(ThrottlingRate defaultRate, ThrottlingPolicy delegate)
      Constructs a new DefaultRateThrottlingPolicy.
      Parameters:
      defaultRate - the rate to return if the one returned by the delegate is null.
      delegate - the wrapped datasource to execute
  • Method Details