类 RampUpRateLimiter

java.lang.Object
com.github.myzhan.locust4j.ratelimit.AbstractRateLimiter
com.github.myzhan.locust4j.ratelimit.RampUpRateLimiter

public class RampUpRateLimiter extends AbstractRateLimiter
A RampUpRateLimiter distributes permits at a ramp-up rate, in steps. Each acquire() blocks until a permit is available.
从以下版本开始:
1.0.4
作者:
myzhan
  • 构造器详细资料

    • RampUpRateLimiter

      public RampUpRateLimiter(long maxThreshold, long rampUpStep, long rampUpPeriod, TimeUnit rampUpTimeUnit, long refillPeriod, TimeUnit refillUnit)
      Creates a RampUpRateLimiter
      参数:
      maxThreshold - the max threshold that should not be overstepped.
      rampUpStep - the ramp-up step.
      rampUpPeriod - the duration of the period where the RampUpRateLimiter ramps up the threshold.
      rampUpTimeUnit - the time unit.
      refillPeriod - the duration of the period where the RampUpRateLimiter updates the bucket.
      refillUnit - the time unit.
  • 方法详细资料