com.zaxxer.hikari.util.ConcurrentBag.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of HikariCP Show documentation
Show all versions of HikariCP Show documentation
Ultimate JDBC Connection Pool
???? 4? ?
W ? U ?
U ? U ? ?
? U ? ?
? U ? ?
? U ? ?
? ? U ? ?
? ? ? ? ? ?
? ?
?
? ? ? ? ? Y ?
?
? ? ? ? ? ?
? ? ? ' ?
? ?
? ? ?
? ?
? ?
? ? U ? U ? ? ? ? ?
6 ?
? ? ? ?
? ? ?
?
?
W
W
Q
S !
"#$%& IBagStateListener InnerClasses IConcurrentBagEntry LOGGER Lorg/slf4j/Logger;
sharedList +Ljava/util/concurrent/CopyOnWriteArrayList; Signature 0Ljava/util/concurrent/CopyOnWriteArrayList; weakThreadLocals Z
threadList Ljava/lang/ThreadLocal; =Ljava/lang/ThreadLocal;>; listener 8Lcom/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 Code LineNumberTable LocalVariableTable this &Lcom/zaxxer/hikari/util/ConcurrentBag; LocalVariableTypeTable +Lcom/zaxxer/hikari/util/ConcurrentBag;
StackMapTable borrow \(JLjava/util/concurrent/TimeUnit;)Lcom/zaxxer/hikari/util/ConcurrentBag$IConcurrentBagEntry; entry Ljava/lang/Object; bagEntry :Lcom/zaxxer/hikari/util/ConcurrentBag$IConcurrentBagEntry; i I start J timeout timeUnit Ljava/util/concurrent/TimeUnit; list Ljava/util/List; waiting TT; $Ljava/util/List;'()
Exceptions* %(JLjava/util/concurrent/TimeUnit;)TT; requite =(Lcom/zaxxer/hikari/util/ConcurrentBag$IConcurrentBagEntry;)V threadLocalList (TT;)V add remove =(Lcom/zaxxer/hikari/util/ConcurrentBag$IConcurrentBagEntry;)Z removed (TT;)Z close ()V values (I)Ljava/util/List; state Ljava/util/List; (I)Ljava/util/List; ()Ljava/util/List; ()Ljava/util/List; reserve unreserve getWaitingThreadCount ()I getCount (I)I e count getStateCounts ()[I states [I ? size dumpState useWeakThreadLocals ()Z se Ljava/lang/SecurityException; lambda$dumpState$3 lambda$values$2 >(ILcom/zaxxer/hikari/util/ConcurrentBag$IConcurrentBagEntry;)Z lambda$new$1 lambda$new$0 jLjava/lang/Object;Ljava/lang/AutoCloseable;
SourceFile ConcurrentBag.java 8com/zaxxer/hikari/util/ConcurrentBag$IConcurrentBagEntry p ? h i ? ? c d %java/util/concurrent/SynchronousQueue p+ m n )java/util/concurrent/atomic/AtomicInteger j k )java/util/concurrent/CopyOnWriteArrayList _ ` BootstrapMethods,-. ?/0123 e f4/- java/util/List ? ? ?5 java/lang/ref/WeakReference678 ?9:; ?<-=>? ?@ABCDE ?FGHAI>/ ?J ?KLM ?NOPQR ? pS ?L l d ] ^ -ConcurrentBag has been closed, ignoring add()TUV java/lang/IllegalStateException pV NAttempt to remove an object from the bag that was not borrowed or reserved: {}WX ?L @Attempt to remove an object from the bag that does not exist: {}YZL[ ?\]^_`abcdefghi- DAttempt to relinquish an object to the bag that was not reserved: {}Sj ?klmn #com.zaxxer.hikari.useWeakReferencesopqrstuvwxyz{y java/lang/SecurityException|} com/zaxxer/hikari/util/FastList p~ java/util/ArrayList p> $com/zaxxer/hikari/util/ConcurrentBag?? java/lang/Object java/lang/AutoCloseable 6com/zaxxer/hikari/util/ConcurrentBag$IBagStateListener java/util/Iterator java/util/concurrent/TimeUnit java/lang/Throwable java/lang/InterruptedException (Z)V
?? ()Ljava/lang/Object;
U? get ()Ljava/util/function/Supplier; java/lang/ThreadLocal withInitial 6(Ljava/util/function/Supplier;)Ljava/lang/ThreadLocal;
U? (I)Ljava/lang/Object;
compareAndSet (II)Z incrementAndGet iterator ()Ljava/util/Iterator; hasNext next
addBagItem (I)V decrementAndGet toNanos (J)J "com/zaxxer/hikari/util/ClockSource currentTime ()J NANOSECONDS poll 4(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object; elapsedNanos setState getState offer (Ljava/lang/Object;)Z MICROSECONDS &java/util/concurrent/locks/LockSupport parkNanos (J)V java/lang/Thread yield (Ljava/lang/Object;)V org/slf4j/Logger info (Ljava/lang/String;)V warn '(Ljava/lang/String;Ljava/lang/Object;)V stream ()Ljava/util/stream/Stream;
U? test !(I)Ljava/util/function/Predicate; java/util/stream/Stream filter 9(Ljava/util/function/Predicate;)Ljava/util/stream/Stream; java/util/stream/Collectors toList ()Ljava/util/stream/Collector; collect 0(Ljava/util/stream/Collector;)Ljava/lang/Object; java/util/Collections reverse (Ljava/util/List;)V clone
U? accept ()Ljava/util/function/Consumer; forEach (Ljava/util/function/Consumer;)V java/lang/System getProperty &(Ljava/lang/String;)Ljava/lang/String; java/lang/Boolean
getBoolean (Ljava/lang/String;)Z getClass ()Ljava/lang/Class; java/lang/Class getClassLoader ()Ljava/lang/ClassLoader; java/lang/ClassLoader getSystemClassLoader toString ()Ljava/lang/String; (Ljava/lang/Class;I)V org/slf4j/LoggerFactory getLogger %(Ljava/lang/Class;)Lorg/slf4j/Logger;??? ? ? ? ? ? ? ? ? "java/lang/invoke/LambdaMetafactory metafactory? Lookup ?(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;? %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles ! U W X ] ^ _ ` a b c d e f a g h i j k B l d m n a o p q r ? V*? *+? **? ? *? Y? ? *? Y?
? *? Y?
? *? ? *? ? ? ? *? ? ? ? s *
` a b d e ( f 3 g : h I k U m t V u v V h i w V u x y ? I U Y z { r ? '*? ? ? :? d6? D? :*? ? ? ? ? ? ? :? ? ? ??????*? ? 6*? ? :? ? @? ? :? ? %? *? d? :*? ? W????*? ? -? @? !7*? ? "? #? :? ? ? : *? ? W ?? $e@ %????:*? ? W?:
*? ? W
? f ? ? ? ? s ~ { | } ' C ? T ? W | ] ? f ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?$ ? t p ' 0 | } C ~ F ? ? ? . ~ ? 8 ? ? ? ( ~ ' u v ' ? ? ' ? ? ? ? f ? ? ? w 4 C ~ ? ? . ~ ? ? ( ~ ? ' u x ? ? y J
? ? $ WD ? ? ? ?? 4 ? ? ? % ? U ? ? ? ? a ? ? ? r S |+? ' =*? ? (? ;+? ) ? *? +? *? ? ?~ ?? ? + ,? ? .? ? /????*? ? ? M,? 2? ,*? ? ? Y+? 0? +? 1 W? s 2 ? ? ? ' ? ( ? 3 ? B ? E ? K ? V ? a ? { ? t * B ? ? | u v | ~ V &