static RateLimiter |
RateLimiter.create(double permitsPerSecond,
long warmupPeriod,
java.util.concurrent.TimeUnit unit) |
Creates a RateLimiter with the specified stable throughput, given as "permits per
second" (commonly referred to as QPS, queries per second), and a warmup period,
during which the RateLimiter smoothly ramps up its rate, until it reaches its maximum
rate at the end of the period (as long as there are enough requests to saturate it).
|
static RateLimiter |
RateLimiter.create(double permitsPerSecond,
java.time.Duration warmupPeriod) |
Creates a RateLimiter with the specified stable throughput, given as "permits per
second" (commonly referred to as QPS, queries per second), and a warmup period,
during which the RateLimiter smoothly ramps up its rate, until it reaches its maximum
rate at the end of the period (as long as there are enough requests to saturate it).
|