Class RateLimiter.SleepingStopwatch
- java.lang.Object
-
- com.google.common.util.concurrent.RateLimiter.SleepingStopwatch
-
- Enclosing class:
- RateLimiter
abstract static class RateLimiter.SleepingStopwatch extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SleepingStopwatch()
Constructor for use by subclasses.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static RateLimiter.SleepingStopwatch
createFromSystemTimer()
protected abstract long
readMicros()
protected abstract void
sleepMicrosUninterruptibly(long micros)
-
-
-
Method Detail
-
readMicros
protected abstract long readMicros()
-
sleepMicrosUninterruptibly
protected abstract void sleepMicrosUninterruptibly(long micros)
-
createFromSystemTimer
public static RateLimiter.SleepingStopwatch createFromSystemTimer()
-
-