All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.common.util.concurrent.RateLimiter.class Maven / Gradle / Ivy

????4?
?com/google/common/util/concurrent/RateLimiter$SleepingStopwatchcreateFromSystemTimerC()Lcom/google/common/util/concurrent/RateLimiter$SleepingStopwatch;
	
-com/google/common/util/concurrent/RateLimitercreates(DLcom/google/common/util/concurrent/RateLimiter$SleepingStopwatch;)Lcom/google/common/util/concurrent/RateLimiter;@com/google/common/util/concurrent/SmoothRateLimiter$SmoothBursty

E(Lcom/google/common/util/concurrent/RateLimiter$SleepingStopwatch;D)V
setRate(D)V
*com/google/common/util/concurrent/InternaltoNanosSaturated(Ljava/time/Duration;)J	 !"java/util/concurrent/TimeUnitNANOSECONDSLjava/util/concurrent/TimeUnit;
$%R(DJLjava/util/concurrent/TimeUnit;)Lcom/google/common/util/concurrent/RateLimiter;'%warmupPeriod must not be negative: %s
)*+,-$com/google/common/base/Preconditions
checkArgument(ZLjava/lang/String;J)V@
12?(DJLjava/util/concurrent/TimeUnit;DLcom/google/common/util/concurrent/RateLimiter$SleepingStopwatch;)Lcom/google/common/util/concurrent/RateLimiter;4Ccom/google/common/util/concurrent/SmoothRateLimiter$SmoothWarmingUp
367e(Lcom/google/common/util/concurrent/RateLimiter$SleepingStopwatch;JLjava/util/concurrent/TimeUnit;D)V	9:;mutexDoNotUseDirectlyLjava/lang/Object;=java/lang/Object
<?@()V
)BCDcheckNotNull&(Ljava/lang/Object;)Ljava/lang/Object;	FGH	stopwatchALcom/google/common/util/concurrent/RateLimiter$SleepingStopwatch;Jrate must be positive
)L,M(ZLjava/lang/Object;)V
OPQmutex()Ljava/lang/Object;
STU
readMicros()J
WXY	doSetRate(DJ)V
[\]	doGetRate()D
_`aacquire(I)D
cdereserve(I)J
ghisleepMicrosUninterruptibly(J)V	kl"SECONDS
noptoMicros(J)J
rstcheckPermits(I)V
vwxreserveAndGetWaitLength(IJ)J
z{|
tryAcquire$(IJLjava/util/concurrent/TimeUnit;)Z	~"MICROSECONDS
?????java/lang/Mathmax(JJ)J
???
canAcquire(JJ)Z
??pqueryEarliestAvailable
??xreserveEarliestAvailable	?????java/util/LocaleROOTLjava/util/Locale;? RateLimiter[stableRate=%3.1fqps]
??]getRate
?????java/lang/DoublevalueOf(D)Ljava/lang/Double;
?????java/lang/StringformatK(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;?'Requested permits (%s) must be positive
)?,?(ZLjava/lang/String;I)VRuntimeVisibleAnnotationsLjavax/annotation/CheckForNull;2(D)Lcom/google/common/util/concurrent/RateLimiter;CodeLineNumberTableLocalVariableTablepermitsPerSecondDMethodParametersrateLimiter/Lcom/google/common/util/concurrent/RateLimiter;RuntimeInvisibleAnnotations1Lcom/google/common/annotations/VisibleForTesting;F(DLjava/time/Duration;)Lcom/google/common/util/concurrent/RateLimiter;warmupPeriodLjava/time/Duration;Junit
StackMapTable
coldFactorthis?java/lang/ThrowableD(Lcom/google/common/util/concurrent/RateLimiter$SleepingStopwatch;)V	nowMicros8Lcom/google/errorprone/annotations/CanIgnoreReturnValue;permitsImicrosToWait(Ljava/time/Duration;)Ztimeout#(JLjava/util/concurrent/TimeUnit;)Z(I)Z()Z(ILjava/time/Duration;)Z
timeoutMicrosmomentAvailabletoString()Ljava/lang/String;
SourceFileRateLimiter.javaCLcom/google/common/util/concurrent/ElementTypesAreNonnullByDefault;$Lcom/google/common/annotations/Beta;0Lcom/google/common/annotations/J2ktIncompatible;/Lcom/google/common/annotations/GwtIncompatible;InnerClassesSleepingStopwatch?3com/google/common/util/concurrent/SmoothRateLimiterSmoothBurstySmoothWarmingUp!<GHB:;??	??2&???????????W?
Y,?N-&?-???
??? ??GH
???	?G??	??@&,???#?????????	??	%?t 	???& ?(& .??0??????? ?????"?
@?
???2?}	?3Y ?5:&???????>?????"??GH	???????G??PQ??/*?8L+?'*YM?*?8L+?*?YL?8,çN,?-?+?
%((+(?"??	?
???#?-??/??*P;??#<*+?A??E????????GH?G??0'???I?K*?NYN?*'*?E?R?V-ç
:-???%((,(?#/?0??0???
@?<????XY?	???]?m*?NYL?*?Z+ïM+?,?
??????<?\]`]?0*?^??#?????`a?b*?bA*?E ?f ?k?j
?m?o??123? ??????????de???q*?NYM?**?E?R?u,íN,?-??=>?@???????<???{??A
*+???y??P?
??
????{??F*-?y??a? ?????"?	??{??>
*	?}?y??o?
??
????{??4
*	?}?y??|?
??{??K
*,???y???? 
??
??
???	??{|?F
S ?m	??7?q*?NY:	?*?E?R7
*
???	ì*
?u7	ç:	??*?E?f?0@1=@@E@?*
????!?,?1?:?H?Q??R!??
:??S??S??S??S?"G??H???A?1	<?<???
??????[*??!e??????? ???????@?	??wx?]* ??7 e	????
???*??????	???	???p???x?	?????A????




© 2015 - 2025 Weber Informatics LLC | Privacy Policy