![JAR search and dependency download from the Maven repository](/logo.png)
com.google.common.util.concurrent.SmoothRateLimiter.class Maven / Gradle / Ivy
???? 4 m
M
M N
O P Q
P R S
T U
V W
X
Y Z
[ \ ] ^ _ InnerClasses ` SmoothBursty a SmoothWarmingUp
storedPermits D
maxPermits stableIntervalMicros nextFreeTicketMicros J b 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; MethodParameters doSetRate (DJ)V permitsPerSecond nowMicros (DD)V doGetRate ()D queryEarliestAvailable (J)J reserveEarliestAvailable (IJ)J requiredPermits I returnValue storedPermitsToSpend freshPermits
waitMicros storedPermitsToWaitTime (DD)J
permitsToTake coolDownIntervalMicros resync (J)V
newPermits
StackMapTable {(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 RuntimeVisibleAnnotations CLcom/google/common/util/concurrent/ElementTypesAreNonnullByDefault; RuntimeInvisibleAnnotations 0Lcom/google/common/annotations/J2ktIncompatible; /Lcom/google/common/annotations/GwtIncompatible; > ? c d e f 1 ) - g h i : ; j k l = / 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/util/concurrent/TimeUnit SECONDS Ljava/util/concurrent/TimeUnit; toMicros java/lang/Math min (DD)D com/google/common/math/LongMath saturatedAdd (JJ)J
! G *+? * ? ? " M J
N # $ % &