Uses of Class
com.google.common.util.concurrent.RateLimiter
-
Packages that use RateLimiter Package Description com.google.common.util.concurrent Concurrency utilities. -
-
Uses of RateLimiter in com.google.common.util.concurrent
Subclasses of RateLimiter in com.google.common.util.concurrent Modifier and Type Class Description (package private) classSmoothRateLimiter(package private) static classSmoothRateLimiter.SmoothBurstyThis implements a "bursty" RateLimiter, where storedPermits are translated to zero throttling.(package private) static classSmoothRateLimiter.SmoothWarmingUpThis implements the following function where coldInterval = coldFactor * stableInterval.Methods in com.google.common.util.concurrent that return RateLimiter Modifier and Type Method Description static RateLimiterRateLimiter. create(double permitsPerSecond)Creates aRateLimiterwith the specified stable throughput, given as "permits per second" (commonly referred to as QPS, queries per second).static RateLimiterRateLimiter. create(double permitsPerSecond, long warmupPeriod, java.util.concurrent.TimeUnit unit)Creates aRateLimiterwith the specified stable throughput, given as "permits per second" (commonly referred to as QPS, queries per second), and a warmup period, during which theRateLimitersmoothly 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 RateLimiterRateLimiter. create(double permitsPerSecond, long warmupPeriod, java.util.concurrent.TimeUnit unit, double coldFactor, RateLimiter.SleepingStopwatch stopwatch)(package private) static RateLimiterRateLimiter. create(double permitsPerSecond, RateLimiter.SleepingStopwatch stopwatch)static RateLimiterRateLimiter. create(double permitsPerSecond, java.time.Duration warmupPeriod)Creates aRateLimiterwith the specified stable throughput, given as "permits per second" (commonly referred to as QPS, queries per second), and a warmup period, during which theRateLimitersmoothly 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).
-