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

com.zaxxer.hikari.util.ConcurrentBag.class Maven / Gradle / Ivy

There is a newer version: 1.0.0-beta2
Show newest version
????4?$com/zaxxer/hikari/util/ConcurrentBagjLjava/lang/Object;Ljava/lang/AutoCloseable;java/lang/Objectjava/lang/AutoCloseableConcurrentBag.java6com/zaxxer/hikari/util/ConcurrentBag$IBagStateListener	IBagStateListener8com/zaxxer/hikari/util/ConcurrentBag$IConcurrentBagEntryIConcurrentBagEntry%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandlesLookupLOGGERLorg/slf4j/Logger;
sharedList+Ljava/util/concurrent/CopyOnWriteArrayList;0Ljava/util/concurrent/CopyOnWriteArrayList;weakThreadLocalsZ
threadListLjava/lang/ThreadLocal;=Ljava/lang/ThreadLocal;>;listener8Lcom/zaxxer/hikari/util/ConcurrentBag$IBagStateListener;waiters+Ljava/util/concurrent/atomic/AtomicInteger;closedhandoffQueue'Ljava/util/concurrent/SynchronousQueue;,Ljava/util/concurrent/SynchronousQueue;;(Lcom/zaxxer/hikari/util/ConcurrentBag$IBagStateListener;)V()V&(
)	+useWeakThreadLocals()Z-.
/	1%java/util/concurrent/SynchronousQueue3(Z)V&5
46#$	8)java/util/concurrent/atomic/AtomicInteger:
;) !	=)java/util/concurrent/CopyOnWriteArrayList?
@)	B()Ljava/lang/Object;Dlambda$new$0()Ljava/util/List;FG
HIG"java/lang/invoke/LambdaMetafactoryLmetafactory?(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;NO
MPQget()Ljava/util/function/Supplier;STUjava/lang/ThreadLocalWwithInitial6(Ljava/util/function/Supplier;)Ljava/lang/ThreadLocal;YZ
X[	]lambda$new$1_G
`aUthis+Lcom/zaxxer/hikari/util/ConcurrentBag;&Lcom/zaxxer/hikari/util/ConcurrentBag;borrow\(JLjava/util/concurrent/TimeUnit;)Lcom/zaxxer/hikari/util/ConcurrentBag$IConcurrentBagEntry;%(JLjava/util/concurrent/TimeUnit;)TT;java/lang/InterruptedExceptionjSD
Xljava/util/Listnsize()Ipqorremove(I)Ljava/lang/Object;tuovjava/lang/ref/WeakReferencex
yl
compareAndSet(II)Z{|
}incrementAndGetq
;?iterator()Ljava/util/Iterator;??
@?java/util/Iterator?hasNext?.??next?D??
addBagItem(I)V??
?decrementAndGet?q
;?java/util/concurrent/TimeUnit?toNanos(J)J??
??"com/zaxxer/hikari/util/ClockSource?currentTime()J????NANOSECONDSLjava/util/concurrent/TimeUnit;??	??poll4(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;??
4?elapsedNanos????'java/lang/Throwable?entryLjava/lang/Object;bagEntryTT;:Lcom/zaxxer/hikari/util/ConcurrentBag$IConcurrentBagEntry;iIstartJtimeouttimeUnitlist$Ljava/util/List;Ljava/util/List;waitingrequite=(Lcom/zaxxer/hikari/util/ConcurrentBag$IConcurrentBagEntry;)V(TT;)VsetState??
?Sq
;?getState?q
?offer(Ljava/lang/Object;)Z??
4?MICROSECONDS??	??
&java/util/concurrent/locks/LockSupport?	parkNanos(J)V??
??java/lang/Thread?yield?(
??(Ljava/lang/Object;)V&?
y?add??o?threadLocalList"	?	?-ConcurrentBag has been closed, ignoring add()?org/slf4j/Logger?info(Ljava/lang/String;)V????java/lang/IllegalStateException?&?
??
@?=(Lcom/zaxxer/hikari/util/ConcurrentBag$IConcurrentBagEntry;)Z(TT;)ZNAttempt to remove an object from the bag that was not borrowed or reserved: {}?warn'(Ljava/lang/String;Ljava/lang/Object;)V????t?
@?@Attempt to remove an object from the bag that does not exist: {}o?removedclosevalues(I)Ljava/util/List;(I)Ljava/util/List;stream()Ljava/util/stream/Stream;	
@
?lambda$values$2>(ILcom/zaxxer/hikari/util/ConcurrentBag$IConcurrentBagEntry;)Z

?test!(I)Ljava/util/function/Predicate;java/util/stream/Streamfilter9(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;java/util/stream/CollectorstoList()Ljava/util/stream/Collector; 
!collect0(Ljava/util/stream/Collector;)Ljava/lang/Object;#$%java/util/Collections'reverse(Ljava/util/List;)V)*
(+stateLjava/util/List;()Ljava/util/List;clone0D
@1reserve	unreserveDAttempt to relinquish an object to the bag that was not reserved: {}5getWaitingThreadCountgetCount(I)IecountgetStateCounts()[I[I>
@rstates	dumpState?lambda$dumpState$3D?
EF?accept()Ljava/util/function/Consumer;IJKforEach (Ljava/util/function/Consumer;)VMN
@Ojava/lang/SecurityExceptionQ#com.zaxxer.hikari.useWeakReferencesSjava/lang/SystemUgetProperty&(Ljava/lang/String;)Ljava/lang/String;WX
VYjava/lang/Boolean[
getBoolean(Ljava/lang/String;)Z]^
\_getClass()Ljava/lang/Class;ab
cjava/lang/ClassegetClassLoader()Ljava/lang/ClassLoader;gh
fijava/lang/ClassLoaderkgetSystemClassLoadermh
lnseLjava/lang/SecurityException;toString()Ljava/lang/String;rs
tcom/zaxxer/hikari/util/FastListv(Ljava/lang/Class;I)V&x
wyjava/util/ArrayList{&?
|}org/slf4j/LoggerFactory?	getLogger%(Ljava/lang/Class;)Lorg/slf4j/Logger;??
??	SignatureCode
StackMapTableLineNumberTableLocalVariableTableLocalVariableTypeTable
ExceptionsInnerClasses
SourceFileBootstrapMethods!?? !B"#$?%&'??V*?**+?,**?0?2*?4Y?7?9*?;Y?*?@Y?A?C*?2?*?V?\?^?*?c?\?^???I
?*
`a	bde(f3g:hIkUm?VdfV?Vdegh??'*?^?m?o:?sd6?D?w:*?2??y?z?
??
:??~???????*?>??6*?C??:???@???
:?~?%?*?,d??:*?>??W????*?,??-??@??7*?9?????
:??~?:	*?>??W	???e@?????:*?>??W?:
*?>??W
?f?????J
?o?$D
?????4
???%
??o??~{|}'C?T?W|]?f??????????????????????????????????????$??p'0??C??F???.???8???(??'df'??'????f????4C???.???(??'de???k?i???S|+??=*?>?ƞ;+???*?9+?͙??~????Ѷ??ا?݄???*?^?m?oM,?s2?,*?2??yY+??+??W??7	?	??(
oo?
oo?2???'?(?3?B?E?K?V?a?{??*	B??|df|??V&??? |de|??V&????????I*????????Y???*?C+??W*?>?ƞ+???*?9+?͚	?ݧ?߱?#?????$?B?H??IdfI???IdeI????t???^+?~?#+??~?*?????+???*?C+??=?*????+??*?^?m?o+?W??+??"??)?+?4???K?\?? ^df^??4*?^de^????(?F*???
???df?de??$*?C????"?&?oM,?,,??"	? $df$-????$de?.?G?G*?C?2?o???df?de?/3??Z
+??~??(?
df
???
de
????4???4+??~?*?>?ƞ *?9+?͚?ݧ???6+?????46!7';3=?4df4???4de4????7q?D*?>?Ƭ?G?df?de89??1=*?C??N-???-???
:?????????
?
?!??RST)U,W/X?*:?1df1-?/;??1de<=??E?
L*?C??M,???,???
N+-??\.`O???+*?C?@O+*?>??O+???
???!?]^ _,`/a9bCd?  :?Edf@A>?Edepq?D*?C?@??n?df?deB(?M
*?C?L?P??
st?
df?
de-.??&T?Z?
T?`?*?d?j?o???L?#R"#R?
@@R??	??#?$??$pq&df?&de
D??7
??*?u????s?
??

?O+??????@??-?:?
_G?$?wY
?z??k
FG?"
?|Y?~??h(?!	?????=?
	
	???*REJKREbKRRCGH




© 2015 - 2024 Weber Informatics LLC | Privacy Policy