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

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

There is a newer version: 1.4
Show newest version
????2?
/?	3?
/??
?
/?
/??
?
??A??e
?
??	/?	/?	/?
3?	/?
???
??
/?
/?	??
??	/?
/?
/?
/?
/?
3?
/?	???	/?
??
/?	/?	???A.??
??
????InnerClasses?SleepingTickerBursty	WarmingUpticker>Lcom/google/common/util/concurrent/RateLimiter$SleepingTicker;offsetNanosJ
storedPermitsD
maxPermitsstableIntervalMicrosmutexLjava/lang/Object;nextFreeTicketMicroscreate2(D)Lcom/google/common/util/concurrent/RateLimiter;CodeLineNumberTableLocalVariableTablepermitsPerSecondp(Lcom/google/common/util/concurrent/RateLimiter$SleepingTicker;D)Lcom/google/common/util/concurrent/RateLimiter;rateLimiter/Lcom/google/common/util/concurrent/RateLimiter;RuntimeInvisibleAnnotations1Lcom/google/common/annotations/VisibleForTesting;R(DJLjava/util/concurrent/TimeUnit;)Lcom/google/common/util/concurrent/RateLimiter;warmupPeriodunitLjava/util/concurrent/TimeUnit;?(Lcom/google/common/util/concurrent/RateLimiter$SleepingTicker;DJLjava/util/concurrent/TimeUnit;)Lcom/google/common/util/concurrent/RateLimiter;createWithCapacitymaxBurstBuildupmaxBurstSeconds6Lcom/google/common/util/concurrent/RateLimiter$Bursty;A(Lcom/google/common/util/concurrent/RateLimiter$SleepingTicker;)VthissetRate(D)V
StackMapTable???	doSetRate(DD)VgetRate()Dacquire()V(I)VpermitsImicrosToWait
tryAcquire#(JLjava/util/concurrent/TimeUnit;)Ztimeout(I)Z()Z$(IJLjava/util/concurrent/TimeUnit;)Z	nowMicros
timeoutMicros?checkPermitsreserveNextTicket(DJ)JrequiredPermitsmicrosToNextFreeTicketstoredPermitsToSpendfreshPermits
waitMicrosstoredPermitsToWaitTime(DD)Jresync(J)VreadSafeMicros()JtoString()Ljava/lang/String;r(Lcom/google/common/util/concurrent/RateLimiter$SleepingTicker;Lcom/google/common/util/concurrent/RateLimiter$1;)Vx0x11Lcom/google/common/util/concurrent/RateLimiter$1;
SourceFileRateLimiter.java(Ljavax/annotation/concurrent/ThreadSafe;$Lcom/google/common/annotations/Beta;VW?8BH4com/google/common/util/concurrent/RateLimiter$BurstyV?YZBQ7com/google/common/util/concurrent/RateLimiter$WarmingUpV????Vdjava/lang/Object?@A:78?9:???rate must be positive???~|}?P??><_`cerest?}in?P"Requested permits must be positive;<???z{=<?P RateLimiter[stableRate=%3.1fqps]?????-com/google/common/util/concurrent/RateLimiter/com/google/common/util/concurrent/RateLimiter$1<?@A:	BCD2?&??E?FG<BHDW?Y*?N-'?-?E?
??F 78G<
IJKL	BMDI?& ??EF G<N:OPBQDp?Y*!?	:'??E
F478G<N:OP
	IJKLRQD?	"!?
?o9?Y*?:'?
?E!
"#$F>"78"G<"S:"OP
T<	IUKLVWDj"*?*?Y??*	?*+?*+???EKCILM!NF"XJ"78YZD?L'??'????*?YN?**???
??'o9*?*'?-ç
:-???ADDHDE"cef&g2h8i?jKkF 2
><LXJLG<[@?1\]^?_`abD8?
??*?o?EwFXJcdD4*??E
??FXJceD?.?*?Y:?*?*?? Aç:??*? ?!?"E????%?-?F .XJ.fgh:[!?\]^?\ijDF*-?"?E?F XJk:OPilD>
*	?#?"?E?F
XJ
fgimD4
*	?#?"?E?F
XJinD8
O ?7?*?Y:	?*?7
*?
a??	ì*?
? 7	ç:	??*??!?+<,9<<A<E*
?????'?,?6?D?M?FHo:
OXJOfgOk:OOPGp:6h:[A?,	\q]?\q]^?\q
reDH??$??E
??Ffg[@stD?
K*!?*?!e7'*?%?&9'g9	**?%?'	*?k?a7**?a?*Y?%g?%?E"??
???2?=?H?FHKXJKu<Ko:
>v:4w<.x<	2y:z{|}Dt	+*???$**?(*?%*?e?*?oc?&?%*??E?	?%?*?F+XJ+o:[*~D=?)*??*?e??EFXJ??DB*?Y+*?o?-S?.?EFXJV?DD*+??EYF XJ?8????K
??2"0/3/4/5
/6




© 2015 - 2025 Weber Informatics LLC | Privacy Policy