Package | Description |
---|---|
com.google.common.util.concurrent |
Concurrency utilities.
|
Modifier and Type | Field and Description |
---|---|
private RateLimiter.SleepingStopwatch |
RateLimiter.stopwatch
The underlying timer; used both to measure elapsed time and sleep as necessary.
|
Modifier and Type | Method and Description |
---|---|
static RateLimiter.SleepingStopwatch |
RateLimiter.SleepingStopwatch.createFromSystemTimer() |
Modifier and Type | Method and Description |
---|---|
(package private) static RateLimiter |
RateLimiter.create(RateLimiter.SleepingStopwatch stopwatch,
double permitsPerSecond) |
(package private) static RateLimiter |
RateLimiter.create(RateLimiter.SleepingStopwatch stopwatch,
double permitsPerSecond,
long warmupPeriod,
java.util.concurrent.TimeUnit unit,
double coldFactor) |
Constructor and Description |
---|
RateLimiter(RateLimiter.SleepingStopwatch stopwatch) |
SmoothBursty(RateLimiter.SleepingStopwatch stopwatch,
double maxBurstSeconds) |
SmoothRateLimiter(RateLimiter.SleepingStopwatch stopwatch) |
SmoothWarmingUp(RateLimiter.SleepingStopwatch stopwatch,
long warmupPeriod,
java.util.concurrent.TimeUnit timeUnit,
double coldFactor) |