Uses of Class
com.google.common.util.concurrent.RateLimiter
Packages that use RateLimiter
-
Uses of RateLimiter in com.google.common.util.concurrent
Subclasses of RateLimiter in com.google.common.util.concurrentModifier and TypeClassDescription(package private) class
(package private) static final class
This implements a "bursty" RateLimiter, where storedPermits are translated to zero throttling.(package private) static final class
This implements the following function where coldInterval = coldFactor * stableInterval.Methods in com.google.common.util.concurrent that return RateLimiterModifier and TypeMethodDescriptionstatic RateLimiter
RateLimiter.create
(double permitsPerSecond) Creates aRateLimiter
with the specified stable throughput, given as "permits per second" (commonly referred to as QPS, queries per second).static RateLimiter
Creates aRateLimiter
with the specified stable throughput, given as "permits per second" (commonly referred to as QPS, queries per second), and a warmup period, during which theRateLimiter
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).(package private) static RateLimiter
RateLimiter.create
(double permitsPerSecond, long warmupPeriod, TimeUnit unit, double coldFactor, RateLimiter.SleepingStopwatch stopwatch) (package private) static RateLimiter
RateLimiter.create
(double permitsPerSecond, RateLimiter.SleepingStopwatch stopwatch) static RateLimiter
Creates aRateLimiter
with the specified stable throughput, given as "permits per second" (commonly referred to as QPS, queries per second), and a warmup period, during which theRateLimiter
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).