
com.google.common.util.concurrent.SmoothRateLimiter$SmoothWarmingUp.class Maven / Gradle / Ivy
???? 4 _
3com/google/common/util/concurrent/SmoothRateLimiter {(Lcom/google/common/util/concurrent/RateLimiter$SleepingStopwatch;Lcom/google/common/util/concurrent/SmoothRateLimiter$1;)V
java/util/concurrent/TimeUnit toMicros (J)J Ccom/google/common/util/concurrent/SmoothRateLimiter$SmoothWarmingUp warmupPeriodMicros J
coldFactor D
maxPermits?? thresholdPermits@ " # slope % java/lang/Double? ) *
storedPermits
, - . / 0 java/lang/Math min (DD)D
2 3 4
permitsToTime (D)D 6 7 stableIntervalMicros e(Lcom/google/common/util/concurrent/RateLimiter$SleepingStopwatch;JLjava/util/concurrent/TimeUnit;D)V Code LineNumberTable LocalVariableTable this ELcom/google/common/util/concurrent/SmoothRateLimiter$SmoothWarmingUp; stopwatch ALcom/google/common/util/concurrent/RateLimiter$SleepingStopwatch; warmupPeriod timeUnit Ljava/util/concurrent/TimeUnit; MethodParameters doSetRate (DD)V permitsPerSecond
oldMaxPermits coldIntervalMicros
StackMapTable storedPermitsToWaitTime (DD)J permitsAboveThresholdToTake length
permitsToTake availablePermitsAboveThreshold micros permits coolDownIntervalMicros ()D
SourceFile SmoothRateLimiter.java InnerClasses X ?com/google/common/util/concurrent/RateLimiter$SleepingStopwatch Z -com/google/common/util/concurrent/RateLimiter SleepingStopwatch ] 5com/google/common/util/concurrent/SmoothRateLimiter$1 SmoothWarmingUp 0 # 8 9 u *+? * ? ?
*? ? : ? ? ? ? ; 4 <