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

com.groupbyinc.flux.common.cache.Cache.class Maven / Gradle / Ivy

There is a newer version: 129
Show newest version
????4m&com/groupbyinc/flux/common/cache/Cache<Ljava/lang/Object;java/lang/Object
Cache.java(com/groupbyinc/flux/common/cache/Cache$31com/groupbyinc/flux/common/cache/Cache$CacheStats	
CacheStats4com/groupbyinc/flux/common/cache/Cache$CacheIterator
CacheIterator3com/groupbyinc/flux/common/cache/Cache$CacheSegmentCacheSegment,com/groupbyinc/flux/common/cache/Cache$EntryEntry,com/groupbyinc/flux/common/cache/Cache$StateState(com/groupbyinc/flux/common/cache/Cache$1(com/groupbyinc/flux/common/cache/Cache$2Bcom/groupbyinc/flux/common/cache/RemovalNotification$RemovalReason4com/groupbyinc/flux/common/cache/RemovalNotification
RemovalReason@com/groupbyinc/flux/common/cache/Cache$CacheSegment$SegmentStats!SegmentStats%java/lang/invoke/MethodHandles$Lookup$java/lang/invoke/MethodHandles&LookupexpireAfterAccessNanosJentriesExpireAfterAccessZexpireAfterWriteNanosentriesExpireAfterWritecountIweight
maximumWeightweigher%Ljava/util/function/ToLongBiFunction;-Ljava/util/function/ToLongBiFunction;removalListener2Lcom/groupbyinc/flux/common/cache/RemovalListener;:Lcom/groupbyinc/flux/common/cache/RemovalListener;NUMBER_OF_SEGMENTSsegments6[Lcom/groupbyinc/flux/common/cache/Cache$CacheSegment;>[Lcom/groupbyinc/flux/common/cache/Cache$CacheSegment;head.Lcom/groupbyinc/flux/common/cache/Cache$Entry;6Lcom/groupbyinc/flux/common/cache/Cache$Entry;taillruLock;Lcom/groupbyinc/flux/common/util/concurrent/ReleasableLock;$assertionsDisabled()VEF
G????????)*	K-*	M/0	O1*	Q2*	S"java/lang/invoke/LambdaMetafactoryUmetafactory?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;WX
VYZ'(Ljava/lang/Object;Ljava/lang/Object;)J\lambda$new$0^\
_`applyAsLong'()Ljava/util/function/ToLongBiFunction;bcd34	f9(Lcom/groupbyinc/flux/common/cache/RemovalNotification;)Vhlambda$new$1jh
kl	onRemoval4()Lcom/groupbyinc/flux/common/cache/RemovalListener;nop67	r;<	t-(Lcom/groupbyinc/flux/common/cache/Cache$1;)VEv
w9com/groupbyinc/flux/common/util/concurrent/ReleasableLocky(java/util/concurrent/locks/ReentrantLock{
|G$(Ljava/util/concurrent/locks/Lock;)VE~
zBC	?ithis0Lcom/groupbyinc/flux/common/cache/Cache;(Lcom/groupbyinc/flux/common/cache/Cache;setExpireAfterAccessNanos(J)V"java/lang/IllegalArgumentException?expireAfterAccessNanos <= 0?(Ljava/lang/String;)VE?
??+,	?getExpireAfterAccessNanos()JsetExpireAfterWriteNanosexpireAfterWriteNanos <= 0?.,	?getExpireAfterWriteNanossetMaximumWeightmaximumWeight < 0?
setWeigher((Ljava/util/function/ToLongBiFunction;)Vjava/util/Objects?requireNonNull&(Ljava/lang/Object;)Ljava/lang/Object;??
??setRemovalListener5(Lcom/groupbyinc/flux/common/cache/RemovalListener;)Vnowjava/lang/System?nanoTime??
??get??
?(Ljava/lang/Object;)V?lambda$get$21(Lcom/groupbyinc/flux/common/cache/Cache$Entry;)V??
???accept()Ljava/util/function/Consumer;???D(Ljava/lang/Object;JLjava/util/function/Consumer;)Ljava/lang/Object;??
?keyTK;Ljava/lang/Object;getCacheSegmentI(Ljava/lang/Object;)Lcom/groupbyinc/flux/common/cache/Cache$CacheSegment;??
?(Ljava/lang/Object;)Z?lambda$get$32(JLcom/groupbyinc/flux/common/cache/Cache$Entry;)Z??
??1(Lcom/groupbyinc/flux/common/cache/Cache$Entry;)Z?testI(Lcom/groupbyinc/flux/common/cache/Cache;J)Ljava/util/function/Predicate;???~(Ljava/lang/Object;JLjava/util/function/Predicate;Ljava/util/function/Consumer;)Lcom/groupbyinc/flux/common/cache/Cache$Entry;??
?promote2(Lcom/groupbyinc/flux/common/cache/Cache$Entry;J)Z??
?value??	?onExpirationULjava/util/function/Consumer;>;Ljava/util/function/Consumer;segment=Lcom/groupbyinc/flux/common/cache/Cache$CacheSegment;5Lcom/groupbyinc/flux/common/cache/Cache$CacheSegment;entrycomputeIfAbsentT(Ljava/lang/Object;Lcom/groupbyinc/flux/common/cache/CacheLoader;)Ljava/lang/Object;'java/util/concurrent/ExecutionException?java/lang/Throwable?java/lang/Exception?java/lang/InterruptedException?lambda$computeIfAbsent$4??
??G(Lcom/groupbyinc/flux/common/cache/Cache;)Ljava/util/function/Consumer;???&java/util/concurrent/CompletableFuture?
?G	writeLock?C	?acquire=()Lcom/groupbyinc/flux/common/util/concurrent/ReleasableLock;??
z?mapLjava/util/Map;?	
java/util/MapputIfAbsent8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;close	F
z
,com/groupbyinc/flux/common/cache/CacheLoader
addSuppressed(Ljava/lang/Throwable;)V
?lambda$computeIfAbsent$5?(JLcom/groupbyinc/flux/common/cache/Cache$CacheSegment;Ljava/lang/Object;Lcom/groupbyinc/flux/common/cache/Cache$Entry;Ljava/lang/Throwable;)Ljava/lang/Object;
W(Lcom/groupbyinc/flux/common/cache/Cache$Entry;Ljava/lang/Throwable;)Ljava/lang/Object;apply?(Lcom/groupbyinc/flux/common/cache/Cache;JLcom/groupbyinc/flux/common/cache/Cache$CacheSegment;Ljava/lang/Object;)Ljava/util/function/BiFunction;handleI(Ljava/util/function/BiFunction;)Ljava/util/concurrent/CompletableFuture;
? load"?
#java/util/function/BiFunction%completeExceptionally(Ljava/lang/Throwable;)Z'(
?)E
?+java/lang/NullPointerException-loader returned a null value/
.?((Ljava/lang/Object;Ljava/lang/Object;J)VE2
3complete5?
?6()Ljava/lang/Object;?8
?9isCompletedExceptionally()Z;<
?=java/lang/IllegalStateException?Bthe future was completed exceptionally but no exception was thrownA
@?
@+future`Ljava/util/concurrent/CompletableFuture;>;(Ljava/util/concurrent/CompletableFuture;ignoredloadedTV;eLjava/lang/Exception;npe Ljava/lang/NullPointerException;completableValue-Ljava/util/concurrent/CompletableFuture; Ljava/lang/InterruptedException;completableFuturehandlerqLjava/util/function/BiFunction<-Lcom/groupbyinc/flux/common/cache/Cache$Entry;Ljava/lang/Throwable;+TV;>;Ljava/util/function/BiFunction;loader6Lcom/groupbyinc/flux/common/cache/CacheLoader;.Lcom/groupbyinc/flux/common/cache/CacheLoader;put'(Ljava/lang/Object;Ljava/lang/Object;)VY2
[Q(Ljava/lang/Object;Ljava/lang/Object;J)Lcom/groupbyinc/flux/common/collect/Tuple;Y]
^(com/groupbyinc/flux/common/collect/Tuple`v2b8
acstate.Lcom/groupbyinc/flux/common/cache/Cache$State;ef	gEXISTINGif	junlinkl?
mv1o8
ap??	rREPLACEDDLcom/groupbyinc/flux/common/cache/RemovalNotification$RemovalReason;tu	vk(Ljava/lang/Object;Ljava/lang/Object;Lcom/groupbyinc/flux/common/cache/RemovalNotification$RemovalReason;)VEx
y0com/groupbyinc/flux/common/cache/RemovalListener{nh|}tuple?Lcom/groupbyinc/flux/common/collect/Tuple;Lcom/groupbyinc/flux/common/cache/Cache$Entry;>;*Lcom/groupbyinc/flux/common/collect/Tuple;replaced
invalidateremoveB(Ljava/lang/Object;)Lcom/groupbyinc/flux/common/cache/Cache$Entry;??
?INVALIDATED?u	?deleteu(Lcom/groupbyinc/flux/common/cache/Cache$Entry;Lcom/groupbyinc/flux/common/cache/RemovalNotification$RemovalReason;)V??
?
invalidateAll[Z?segmentLock*Ljava/util/concurrent/locks/ReadWriteLock;??	?(java/util/concurrent/locks/ReadWriteLock?#()Ljava/util/concurrent/locks/Lock;????java/util/concurrent/locks/Lock?lock?F??>?	?java/util/Arrays?stream.([Ljava/lang/Object;)Ljava/util/stream/Stream;??
??lambda$invalidateAll$68(Lcom/groupbyinc/flux/common/cache/Cache$CacheSegment;)V??
????java/util/stream/Stream?forEach (Ljava/util/function/Consumer;)V????DELETED?f	?after??	?A?	?unlock?F??currenthhaveSegmentLockrefreshevict??
?()Ikeys()Ljava/lang/Iterable;()Ljava/util/Iterator;?
lambda$keys$7??
??iterator>(Lcom/groupbyinc/flux/common/cache/Cache;)Ljava/lang/Iterable;???valueslambda$values$8??
???stats5()Lcom/groupbyinc/flux/common/cache/Cache$CacheStats;segmentStatsBLcom/groupbyinc/flux/common/cache/Cache$CacheSegment$SegmentStats;??	?
access$500k(Lcom/groupbyinc/flux/common/cache/Cache$CacheSegment$SegmentStats;)Ljava/util/concurrent/atomic/LongAdder;??
"?%java/util/concurrent/atomic/LongAdder?	longValue??
??
access$600??
"?
access$700??
"?(JJJ)VE?

?hitsmisses	evictions5$SwitchMap$org$elasticsearch$common$cache$Cache$State[I??	?ordinal??
?relinkAtHead??
?
linkAtHead??
promotedD,	isHeldByCurrentThread()Ljava/lang/Boolean;
zjava/lang/Boolean	booleanValue<

java/lang/AssertionError
GshouldPrune?

evictEntry?
EVICTEDu	
removalReason
exceedsWeight<
	isExpired?

accessTime!*	"	writeTime$*	%before'?	(#java/util/function/ToLongBiFunction*b\+,hashCode.?
/+(Lcom/groupbyinc/flux/common/cache/Cache;)VE1
2
2java/util/HashMap5
6G??8??:sanityokexLjava/lang/Throwable;notification6Lcom/groupbyinc/flux/common/cache/RemovalNotification;kv
access$200q(Lcom/groupbyinc/flux/common/cache/Cache;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/cache/Cache$CacheSegment;x0x1
access$300e(Lcom/groupbyinc/flux/common/cache/Cache;)Lcom/groupbyinc/flux/common/util/concurrent/ReleasableLock;
access$400?(Lcom/groupbyinc/flux/common/cache/Cache;Lcom/groupbyinc/flux/common/cache/Cache$Entry;Lcom/groupbyinc/flux/common/cache/RemovalNotification$RemovalReason;)Vx2java/lang/ClassNdesiredAssertionStatusP<
OQ	Signature
ConstantValueCodeLocalVariableTableLocalVariableTypeTableLineNumberTable
StackMapTable0(Ljava/util/function/ToLongBiFunction;)V=(Lcom/groupbyinc/flux/common/cache/RemovalListener;)V(TK;)TV;^(TK;JLjava/util/function/Consumer;>;)TV;
Exceptions>(TK;Lcom/groupbyinc/flux/common/cache/CacheLoader;)TV;	(TK;TV;)V
(TK;TV;J)V(TK;)V()Ljava/lang/Iterable;()Ljava/lang/Iterable;:(Lcom/groupbyinc/flux/common/cache/Cache$Entry;J)Z9(Lcom/groupbyinc/flux/common/cache/Cache$Entry;)V}(Lcom/groupbyinc/flux/common/cache/Cache$Entry;Lcom/groupbyinc/flux/common/cache/RemovalNotification$RemovalReason;)V9(Lcom/groupbyinc/flux/common/cache/Cache$Entry;)ZB(TK;)Lcom/groupbyinc/flux/common/cache/Cache$CacheSegment;BootstrapMethods
SourceFileInnerClasses!)*+,-*.,/01*2*34S567S890T:;<S=>?S@A?S@BCD,.EFUq*?H*I?L*I?N*?P*	?R*I?T*?e?g*?q?s*??u<*?u??*?u?Y?xS????*?zY?|Y?}?????VA?0q??Wq??X:dHNTWZ#],`5>?AJBXA^JpeY?A???Uz	??
??Y????*?L*???V??)*W??XhiklmY??UA*?L?V??W??Xq??Uz	??
??Y????*?N*???V??-*W??XuvxyzY??UA*?N?V??W??X~??Uq	??
??Y????*?T?V??2*W??X????Y??Uc+??W*+?g?V??34W??35X??
?SZ??Uc+??W*+?s?V??67W??68X??
?S[??U^*???
*???	???	?V??W??X?Y@??U_*+*???????V????W????XSS\??U?.*+??:+ * ????:??* ??W?ܰV>.??.??.?*.??'????W4.??.??.??'???@XWXYZ \(]Y? S]??U?N*??B*+!*????:?6*+??:??Y??:????::	?+???:
?U	???H:	??<??4::	?:?!	???:
	
????*!+?:
?g:

?!:	,+?$:?:
?*W??Y?,??!?.Y0?1:
?*W??Y?,?
?Y+!?4?7W?
?!:		?::
?>?
?:W?@YB?C??:?@Y?D??QVY?5Gm?5Gv????mxv????<??V?G&EG
2lHC?I??KL?MN?4I??WOG	A
KQ,????EG
(#RG??SU/OG	N??N??NVXI?*;??W?
G&EF
?IJ?4IJ?WOP	,????EF
(#RF??ST/OP	N??N??NVW;?JX?"prw}(?5?G?m?v????????????????????????????????#?+?1?<???A?K?Y#?Y

?z????	
?z??H??
?z????

???)

?&????"?

?&??

?&??B??
^?S_YZU?
*??B*+,!?\?V*
??
??
???*W 
??
??
?JX???S`Y2UX
?*+??:+,!?_:6*????::	?d?&?d??h?k?*?d??n?6*?q?!??W?U	???H:
	
??<??4:

:	
?:?!	???:	?????,*?s?Y?d??s?d??ܲw?z?~?chk? Y? Y???????VR?HC???????????*???????,W4????????J?????X:???? ?9?H?K?Y??????????Ym
?K	az?_?G?H??az????a-Sa??U?	|*+??M,+??N-?n*????::*-?????U???H:??<??4::?:?!???:?????.36?$J?$S_dg?JUSV4bHC|??|??v??p??W*|??|??v??p?@X&	?????$?J?S?{?Y\?6z??G?H??z????Sb?FU?
Q?L=? *?u2??????+T????*????MN*??:*?u??????*??:????h??:???**Z????*?P*	?R,?K-?,??@:-??5,??.:N?:,?-?,??:-??,???=?"+3?*?u2???????????3:?6		?$+	3?*?u	2???????	??????**?s?Y?s?ܲ??z?~??:??ױ????6~??6~?????????????Vf
$?0S+??<c??4?HC?#?0?*???&?0	Q??$-??K??W4S+?@<c?@?*?@Q??$-?@X~???"?&?,?6?<?M?S?X?`?j?t?y?~???????????$)F	PY????#?&?z??"?z??
??z??G???z???
??????????
?????+?FUAg*??@*????N:*??-?P?-??D:??8-??1::?:-??-??:??-???"%?8?ALPS?8CAV 
YHCg??b?*Wg??X8AfYD?%z??F?H??z????/?UA*?P?V??W??X1?UA*?R?V??W??X&??UC*???V??W??X1Sc??UC*???V??W??XLSd??U?a	@	B	76*?u??D*?u2?߸??a@!*?u2?߸??aB*?u2?߸??a7?????
Y!??V4
K?0a??_?*]?*Z?*Wa??X&	?????'?:?O?U?Y?
?J??U?
?6*????::??+?h??.?- (6?*+???*+??* ???U???H:??<??4::?:?!???:		?????[`c?Qw?Q?????w??V4?HC????????*?,W?????@X:???4?7?:???B?G?L?Q?w?????YJ
?4z?	Q?G?H??z????Se??U?:??*????
??Y??*???**????**??????V:??:?*W:??X??.?9?Y?U?:??*????
??Y??*+?s??M,?,+?s??W*+????V :??:??$??W :??:?@$??X??$?(?1?9?Y	?Sf??U?=??*????
??Y??*+?n?*?s?Y+?s+??,?z?~?V =??=??=uW=??=?@X??#?<?Y Sg?U|*??*+ ? ???V ?????*W???@X?Y@Se<Ud*?TI??*?R*?T????V??W??X?Y@?U?0*??? +?#e*?L??*??? +?&e*?N????V 0??0??0?*W0??0?@X?Y@Sel?U?Բ?*????
??Y??+?h?k??+?)M+??N,?0??*??+??Y??*-??*???*???)?
,-??+?)-?0??*??+??Y??*,??*???*?????
-,?)+??*Y?Pd?P*Y?R*?g+?s+?ܹ-e?R+???h??V**?'?/?????????W**?'@/??@?????@X^??%?*?/?3?I?N?U?`?e?j?n??????????????
Y?-		?,Sh??Uo??*????
??Y??*??M+?)+*????*+??,?*+???,+?)*Y?P`?P*Y?R*?g+?s+?ܹ-a?R+?k?h?V o??o?? O??W o??o?@ O?@X2 %-26>CMgnY
?"Sf??U?/??*????
??Y??*??+?*+?nW*+??V/??/??W/??/?@X!##$)%.'YSf??U^*?u+?0?~2?V????W????X*Si??UE	?Y*?3?V	??W	??XL??UE	?Y*?4?V	??W	??X1
??U6*?6Y?7??V??X?U??t*????::*??W?U???H:		??<??4:		:	?:
?!???:???
??ܰ-????::-??9??:		?	?>?-??;W?U???H:		??<??4:		:	?:?!???:

?????
#(+???HTY\??JH??????????????????V\	bHC?<G	?HC???*????=?>?W?<F	??X>??????H?p?v??????????????Y??+?z??G?H??
?z??????4z?Q?G?H???z???????U8\*????MN*+?,?K-?,??@:-??5,??.:N?:,?-?,??:-??,????
0?
8BFI?0:8V SHC\??\K?W\??Xs
tu0s8u[vYJ?z??
F?G??z???
???UW*-? ?V ???*K?W??XX
??U+?VK?XS
jhU+?V@AXa
^\U6
?VB?C?X]DEU:*+?ŰVF?G?XFHIU/*???VF?XFJKUE*+,???V F?G?LuXFMFU4?R????XFY@j\	[]a][imi[???[???[???[[???[???[???SklZ
	

@ @"#
%'(




© 2015 - 2025 Weber Informatics LLC | Privacy Policy