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

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

There is a newer version: 59
Show newest version
????2?Dcom/groupbyinc/flux/common/google/common/util/concurrent/RateLimiterjava/lang/ObjectRateLimiter.java(Ljavax/annotation/concurrent/ThreadSafe;;Lcom/groupbyinc/flux/common/google/common/annotations/Beta;Vcom/groupbyinc/flux/common/google/common/util/concurrent/RateLimiter$SleepingStopwatchSleepingStopwatchWcom/groupbyinc/flux/common/google/common/util/concurrent/SmoothRateLimiter$SmoothBurstyJcom/groupbyinc/flux/common/google/common/util/concurrent/SmoothRateLimiter
SmoothBurstyZcom/groupbyinc/flux/common/google/common/util/concurrent/SmoothRateLimiter$SmoothWarmingUpSmoothWarmingUp	stopwatchXLcom/groupbyinc/flux/common/google/common/util/concurrent/RateLimiter$SleepingStopwatch;mutexDoNotUseDirectlyLjava/lang/Object;createI(D)Lcom/groupbyinc/flux/common/google/common/util/concurrent/RateLimiter;createFromSystemTimerZ()Lcom/groupbyinc/flux/common/google/common/util/concurrent/RateLimiter$SleepingStopwatch;
	?(Lcom/groupbyinc/flux/common/google/common/util/concurrent/RateLimiter$SleepingStopwatch;D)Lcom/groupbyinc/flux/common/google/common/util/concurrent/RateLimiter;
permitsPerSecondDHLcom/groupbyinc/flux/common/google/common/annotations/VisibleForTesting;\(Lcom/groupbyinc/flux/common/google/common/util/concurrent/RateLimiter$SleepingStopwatch;D)V#$
%setRate(D)V'(
)rateLimiterFLcom/groupbyinc/flux/common/google/common/util/concurrent/RateLimiter;i(DJLjava/util/concurrent/TimeUnit;)Lcom/groupbyinc/flux/common/google/common/util/concurrent/RateLimiter;%warmupPeriod must not be negative: %s.java/lang/Long0valueOf(J)Ljava/lang/Long;23
14;com/groupbyinc/flux/common/google/common/base/Preconditions6
checkArgument)(ZLjava/lang/String;[Ljava/lang/Object;)V89
7:?(Lcom/groupbyinc/flux/common/google/common/util/concurrent/RateLimiter$SleepingStopwatch;DJLjava/util/concurrent/TimeUnit;)Lcom/groupbyinc/flux/common/google/common/util/concurrent/RateLimiter;<
=warmupPeriodJunitLjava/util/concurrent/TimeUnit;{(Lcom/groupbyinc/flux/common/google/common/util/concurrent/RateLimiter$SleepingStopwatch;JLjava/util/concurrent/TimeUnit;)V#C
Dmutex()Ljava/lang/Object;	H()V#J
Kjava/lang/ThrowableMthis[(Lcom/groupbyinc/flux/common/google/common/util/concurrent/RateLimiter$SleepingStopwatch;)VcheckNotNull&(Ljava/lang/Object;)Ljava/lang/Object;QR
7S	Ujava/lang/DoubleWisNaN(D)ZYZ
X[rate must be positive](ZLjava/lang/Object;)V8_
7`FG
b
readMicros()Jde
	f	doSetRate(DJ)Vhi
jgetRate()D	doGetRatenm
oacquire(I)Dqr
sreserve(I)Juv
wsleepMicrosUninterruptibly(J)Vyz
	{java/util/concurrent/TimeUnit}SECONDSB	~?toMicros(J)J??
~?permitsImicrosToWaitcheckPermits(I)I??
?reserveAndGetWaitLength(IJ)J??
?
tryAcquire#(JLjava/util/concurrent/TimeUnit;)Z$(IJLjava/util/concurrent/TimeUnit;)Z??
?timeout(I)ZMICROSECONDS?B	~?()Zjava/lang/Math?max(JJ)J??
??
canAcquire(JJ)Z??
?	nowMicros
timeoutMicrosqueryEarliestAvailable??
?reserveEarliestAvailable??
?momentAvailabletoString()Ljava/lang/String; RateLimiter[stableRate=%3.1fqps]?lm
?(D)Ljava/lang/Double;2?
X?java/lang/String?format9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;??
??'Requested permits (%s) must be positive?java/lang/Integer?(I)Ljava/lang/Integer;2?
??CodeLocalVariableTableLineNumberTableRuntimeInvisibleAnnotations
StackMapTable
SourceFileInnerClasses!B	?2?&??? !???W?Y*?&N-'?*-??  !
+,??
???"	-?s& 	???/?Y ?5S?;?& ?>?? & !&?@&AB?
???
@<?p?Y*!?E:'?*??4 !?@AB
	+,??
???"FG??/*?IL+?'*YM?*?IL+?*?Y?LYL?I,çN,?-?+?
%((+(?/O,*F?"??	?
???#?-???#DN?#P?L*?L*+?T?	?V??O,????'(??7'??'?\??^?a*?cYN?*'*?V?g?k-ç
:-???,//3/?7O,7 !????*?6??@?N?hilm?m*?cYL?*?p+ïM+?,?
?O,??????Nnmqm?0*?t??O,?qr?b*?xA*?V ?| ?k??
???o?? O,???@?uv?? ??W*?cYM?**?V?g??,íN,?-?? O, ??? ??N???F*-???? O,?@AB?1???>
*	??????
O,
???@???4
*	??????
O,?N???0
T ??	??7??W*?cY:?*?V?g7*???ì*??7
ç:??*?V
?|?1A2>AAFA?H"?@TO,T??T?@TABH?@;?@
?*
^_ab"c-d2f;hIiRj?4?2?~N?	~???[*??!e????? O,?@?@?n?@???]* ??7 e	????*O,???@	?@?
wx???????>??Y*????S????O,??
???T????Y??S?;?????
???@??	
?





© 2015 - 2025 Weber Informatics LLC | Privacy Policy