com.google.common.util.concurrent.SmoothRateLimiter.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jelly Show documentation
Show all versions of jelly Show documentation
Java Functional Metaprogramming API
The newest version!
???? 2 s N O
P
P Q
R S T
S U V
W X
Y Z
[
\ ] ^??????? _
` a b c InnerClasses d SmoothBursty e SmoothWarmingUp
storedPermits D
maxPermits stableIntervalMicros nextFreeTicketMicros J f SleepingStopwatch D(Lcom/google/common/util/concurrent/RateLimiter$SleepingStopwatch;)V Code LineNumberTable LocalVariableTable this 5Lcom/google/common/util/concurrent/SmoothRateLimiter; stopwatch ALcom/google/common/util/concurrent/RateLimiter$SleepingStopwatch; doSetRate (DJ)V permitsPerSecond nowMicros (DD)V doGetRate ()D queryEarliestAvailable (J)J reserveEarliestAvailable (IJ)J e Ljava/lang/ArithmeticException; requiredPermits I returnValue storedPermitsToSpend freshPermits
waitMicros
StackMapTable a ^ storedPermitsToWaitTime (DD)J coolDownIntervalMicros resync (J)V {(Lcom/google/common/util/concurrent/RateLimiter$SleepingStopwatch;Lcom/google/common/util/concurrent/SmoothRateLimiter$1;)V x0 x1 7Lcom/google/common/util/concurrent/SmoothRateLimiter$1;
SourceFile SmoothRateLimiter.java g h ! " % ! F G i j k l 5 - 1 m n o C D p q r java/lang/ArithmeticException E 3 3com/google/common/util/concurrent/SmoothRateLimiter -com/google/common/util/concurrent/RateLimiter 5com/google/common/util/concurrent/SmoothRateLimiter$1 @com/google/common/util/concurrent/SmoothRateLimiter$SmoothBursty Ccom/google/common/util/concurrent/SmoothRateLimiter$SmoothWarmingUp ?com/google/common/util/concurrent/RateLimiter$SleepingStopwatch java/lang/Long MAX_VALUE java/util/concurrent/TimeUnit SECONDS Ljava/util/concurrent/TimeUnit; toMicros java/lang/Math min (DD)D com/google/common/math/LongMath
checkedAdd (JJ)J !
" % &