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

com.zaxxer.hikari.pool.HikariPool.class Maven / Gradle / Ivy

There is a newer version: 6.2.0
Show newest version
????4??

?

?	
?	
?	
?	
?

?
??
???	???
??
??
??	
??	???
?	
??	
??
?
???
 ?	 ?	
?

?	



?


?


?




?	
?

0

	

4?	

4
4
:?
	

??
	
 
?!
C"#
F$d%&	
'(
)*
?+
,-
,.
/0
1
23435

6
?7
8	
9

:
 ;
<=
]>	]?3@	]A

BCD

E	
FGH
CI
]J
 KGL

MN
OP
OQRS
pT	
UVW

XGYZ[\

]
^

_
`

a
Y	
bc

d
e^e`

fg
?h
?ijklm
nop
?qrst
?uv
?x

yz{
?|}
??
????
???
????
?
?
?
??????
??
 ?
 ?????

?

?

?G?
?
?
]??
?
?

?
??'
??(
???
??%?
]?
???
??
]???
????	
?
?????????
???????k???

?
???

?
??

???
??
]?
?
??
???
?????
??
??
??
??%??
???G?
p???
4??
??
p?
?
??
?????PoolInitializationExceptionInnerClasses
KeepaliveTaskMaxLifetimeTaskHouseKeeperPoolEntryCreatorloggerLorg/slf4j/Logger;POOL_NORMALI
ConstantValuePOOL_SUSPENDED
POOL_SHUTDOWN	poolStatealiveBypassWindowMsJhousekeepingPeriodMsEVICTED_CONNECTION_MESSAGELjava/lang/String;DEAD_CONNECTION_MESSAGEpoolEntryCreator4Lcom/zaxxer/hikari/pool/HikariPool$PoolEntryCreator;postFillPoolEntryCreatoraddConnectionQueueReadOnlyViewLjava/util/Collection;	Signature,Ljava/util/Collection;addConnectionExecutor)Ljava/util/concurrent/ThreadPoolExecutor;closeConnectionExecutor
connectionBag&Lcom/zaxxer/hikari/util/ConcurrentBag;JLcom/zaxxer/hikari/util/ConcurrentBag;leakTaskFactory-Lcom/zaxxer/hikari/pool/ProxyLeakTaskFactory;suspendResumeLock*Lcom/zaxxer/hikari/util/SuspendResumeLock;houseKeepingExecutorService/Ljava/util/concurrent/ScheduledExecutorService;houseKeeperTask&Ljava/util/concurrent/ScheduledFuture;)Ljava/util/concurrent/ScheduledFuture<*>;#(Lcom/zaxxer/hikari/HikariConfig;)VCodeLineNumberTableLocalVariableTable	startTimethis#Lcom/zaxxer/hikari/pool/HikariPool;config Lcom/zaxxer/hikari/HikariConfig;
threadFactory$Ljava/util/concurrent/ThreadFactory;maxPoolSizeaddConnectionQueue*Ljava/util/concurrent/LinkedBlockingQueue;LocalVariableTypeTable@Ljava/util/concurrent/LinkedBlockingQueue;
StackMapTable????
getConnection()Ljava/sql/Connection;
Exceptions(J)Ljava/sql/Connection;	poolEntry"Lcom/zaxxer/hikari/pool/PoolEntry;nowtimeoute Ljava/lang/InterruptedException;hardTimeout=VN?shutdown()VstartassassinExecutor&Ljava/util/concurrent/ExecutorService;?evictConnection(Ljava/sql/Connection;)V
connectionLjava/sql/Connection;proxyConnection(Lcom/zaxxer/hikari/pool/ProxyConnection;?gRsetMetricRegistry(Ljava/lang/Object;)VmetricRegistryLjava/lang/Object;setMetricsTrackerFactory4(Lcom/zaxxer/hikari/metrics/MetricsTrackerFactory;)VmetricsTrackerFactory1Lcom/zaxxer/hikari/metrics/MetricsTrackerFactory;setHealthCheckRegistryhealthCheckRegistry
addBagItem(I)Vwaiting	shouldAddZgetActiveConnections()IgetIdleConnectionsgetTotalConnectionsgetThreadsAwaitingConnectionsoftEvictConnectionssuspendPool
resumePoollogPoolState([Ljava/lang/String;)Vprefix[Ljava/lang/String;????recycle%(Lcom/zaxxer/hikari/pool/PoolEntry;)VcloseConnection7(Lcom/zaxxer/hikari/pool/PoolEntry;Ljava/lang/String;)V
closureReasongetPoolStateCounts()[IcreatePoolEntry$()Lcom/zaxxer/hikari/pool/PoolEntry;variancelifetime
heartbeatTimemaxLifetime
keepaliveTimeConnectionSetupException:Lcom/zaxxer/hikari/pool/PoolBase$ConnectionSetupException;Ljava/lang/Exception;??fillPooliconnectionsToAdd?abortActiveConnections)(Ljava/util/concurrent/ExecutorService;)VLjava/lang/Throwable;
checkFailFastinitializationTimeout throwPoolInitializationException(Ljava/lang/Throwable;)VtsoftEvictConnection8(Lcom/zaxxer/hikari/pool/PoolEntry;Ljava/lang/String;Z)Zreasonowner%initializeHouseKeepingExecutorService1()Ljava/util/concurrent/ScheduledExecutorService;executor2Ljava/util/concurrent/ScheduledThreadPoolExecutor;"destroyHouseKeepingExecutorServicegetPoolStats'()Lcom/zaxxer/hikari/metrics/PoolStats;createTimeoutException(J)Ljava/sql/SQLException;sqlStateoriginalExceptionconnectionExceptionLjava/sql/SQLException;getUnwrappedDataSource()Ljavax/sql/DataSource;toString()Ljava/lang/String;.lambda$initializeHouseKeepingExecutorService$2&()Ljava/util/concurrent/ThreadFactory;lambda$closeConnection$1*(Ljava/sql/Connection;Ljava/lang/String;)Vlambda$softEvictConnections$0
access$100G(Lcom/zaxxer/hikari/pool/HikariPool;)Lcom/zaxxer/hikari/pool/PoolEntry;x0
access$200K(Lcom/zaxxer/hikari/pool/HikariPool;)Lcom/zaxxer/hikari/util/ConcurrentBag;
access$3007(Lcom/zaxxer/hikari/pool/HikariPool;)Lorg/slf4j/Logger;
access$400&(Lcom/zaxxer/hikari/pool/HikariPool;)J
access$500R(Lcom/zaxxer/hikari/pool/HikariPool;)Lcom/zaxxer/hikari/pool/ProxyLeakTaskFactory;
access$600&(Lcom/zaxxer/hikari/pool/HikariPool;)V
access$700[(Lcom/zaxxer/hikari/pool/HikariPool;Lcom/zaxxer/hikari/pool/PoolEntry;Ljava/lang/String;Z)Zx1x2x3
SourceFileHikariPool.java8com/zaxxer/hikari/util/ConcurrentBag$IConcurrentBagEntryIConcurrentBagEntry???_/0,-??89!com/zaxxer/hikari/pool/HikariPool%com.zaxxer.hikari.aliveBypassWindowMs	

'com.zaxxer.hikari.housekeeping.periodMs2com/zaxxer/hikari/pool/HikariPool$PoolEntryCreator8"#
After adding $#$com/zaxxer/hikari/util/ConcurrentBag8?(com/zaxxer/hikari/util/SuspendResumeLock8_212??34?_qrmnun?}(java/util/concurrent/LinkedBlockingQueue8x %&java/lang/StringBuilder! "# connection adder???;java/util/concurrent/ThreadPoolExecutor$DiscardOldestPolicyDiscardOldestPolicy$%&)* connection closer8java/util/concurrent/ThreadPoolExecutor$CallerRunsPolicyCallerRunsPolicy%'+*+com/zaxxer/hikari/pool/ProxyLeakTaskFactory(8)-com/zaxxer/hikari/pool/HikariPool$HouseKeeper8*+,-56"com.zaxxer.hikari.blockUntilFilled./012345}6789x:x;<=	}>}?@AORB_CD com/zaxxer/hikari/pool/PoolEntryEF=GfgHI(connection was evicted)(connection is dead)??JLMNOPQRST_U@??java/lang/InterruptedExceptionVWXY_java/sql/SQLException, - Interrupted during connection acquisition8Zjava/lang/StringAfter shutdown ??[_Before shutdown \]^?_^__`a?_@A connection assassinator???b_&com/zaxxer/hikari/pool/ProxyConnectionc_d?(connection evicted by user)?e#com.codahale.metrics.MetricRegistryfgBcom/zaxxer/hikari/metrics/dropwizard/CodahaleMetricsTrackerFactory#com/codahale/metrics/MetricRegistry8h+io.micrometer.core.instrument.MeterRegistryDcom/zaxxer/hikari/metrics/micrometer/MicrometerMetricsTrackerFactory+io/micrometer/core/instrument/MeterRegistry8i6com/zaxxer/hikari/pool/PoolBase$MetricsTrackerDelegateMetricsTrackerDelegatej???klm8n9com/zaxxer/hikari/pool/PoolBase$NopMetricsTrackerDelegateNopMetricsTrackerDelegate/com/codahale/metrics/health/HealthCheckRegistryopqrs}tu0{} - Add connection elided, waiting {}, queue {}java/lang/Objectvwx?yz{|}}~BootstrapMethods?n???????java/lang/IllegalStateException - is not suspendable8??_?_?7{} - {}stats (total={}, active={}, idle={}, waiting={})|}~}?}??????[P_??????????????	1com/zaxxer/hikari/pool/HikariPool$MaxLifetimeTask8?P????/com/zaxxer/hikari/pool/HikariPool$KeepaliveTask??8com/zaxxer/hikari/pool/PoolBase$ConnectionSetupException={} - Error thrown while acquiring connection from data source????????njava/lang/Exception/{} - Cannot acquire connection from data sourcey?4{} - Fill pool skipped, pool is at sufficient level.y?~???????java/lang/Throwable$(connection aborted during shutdown)????{} - Added connection {}7(initialization check complete and minimumIdle is zero)????*{} - Exception during pool initialization.=com/zaxxer/hikari/pool/HikariPool$PoolInitializationException8??_?????????????"java/util/concurrent/ThreadFactory0java/util/concurrent/ScheduledThreadPoolExecutor5java/util/concurrent/ThreadPoolExecutor$DiscardPolicy
DiscardPolicy8??????#com/zaxxer/hikari/pool/HikariPool$18?Timeout failure ?_??(java/sql/SQLTransientConnectionException8 - Connection is not available, request timed out after "?ms.8?????6com/zaxxer/hikari/util/UtilityElf$DefaultThreadFactoryDefaultThreadFactory housekeeper8?(connection evicted)com/zaxxer/hikari/pool/PoolBase"com/zaxxer/hikari/HikariPoolMXBean6com/zaxxer/hikari/util/ConcurrentBag$IBagStateListenerIBagStateListenercom/zaxxer/hikari/HikariConfig$java/util/concurrent/ExecutorServicejava/sql/Connectionorg/slf4j/Logger[Ljava/lang/Object;'java/util/concurrent/ThreadPoolExecutorjava/util/concurrent/Callablejava/util/Iteratororg/slf4j/LoggerFactory	getLogger%(Ljava/lang/Class;)Lorg/slf4j/Logger;java/util/concurrent/TimeUnitMILLISECONDSLjava/util/concurrent/TimeUnit;toMillis(J)Jjava/lang/LonggetLong%(Ljava/lang/String;J)Ljava/lang/Long;	longValue()JSECONDS8(Lcom/zaxxer/hikari/pool/HikariPool;Ljava/lang/String;)V;(Lcom/zaxxer/hikari/util/ConcurrentBag$IBagStateListener;)VisAllowPoolSuspension()Z	FAUX_LOCKgetMetricsTrackerFactory3()Lcom/zaxxer/hikari/metrics/MetricsTrackerFactory;getMetricRegistry()Ljava/lang/Object;getHealthCheckRegistryhandleMBeans'(Lcom/zaxxer/hikari/pool/HikariPool;Z)VgetThreadFactorygetMaximumPoolSizejava/util/CollectionsunmodifiableCollection.(Ljava/util/Collection;)Ljava/util/Collection;poolNameappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;!com/zaxxer/hikari/util/UtilityElfcreateThreadPoolExecutor?(Ljava/util/concurrent/BlockingQueue;Ljava/lang/String;Ljava/util/concurrent/ThreadFactory;Ljava/util/concurrent/RejectedExecutionHandler;)Ljava/util/concurrent/ThreadPoolExecutor;?(ILjava/lang/String;Ljava/util/concurrent/ThreadFactory;Ljava/util/concurrent/RejectedExecutionHandler;)Ljava/util/concurrent/ThreadPoolExecutor;getLeakDetectionThreshold3(JLjava/util/concurrent/ScheduledExecutorService;)VK(Lcom/zaxxer/hikari/pool/HikariPool;Lcom/zaxxer/hikari/pool/HikariPool$1;)V-java/util/concurrent/ScheduledExecutorServicescheduleWithFixedDelay](Ljava/lang/Runnable;JJLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;java/lang/Boolean
getBoolean(Ljava/lang/String;)ZgetInitializationFailTimeoutjava/lang/Runtime
getRuntime()Ljava/lang/Runtime;availableProcessorsjava/lang/Mathmin(II)IsetMaximumPoolSizesetCorePoolSize"com/zaxxer/hikari/util/ClockSourcecurrentTime
elapsedMillisgetMinimumIdlequietlySleep(J)VconnectionTimeoutacquireborrow\(JLjava/util/concurrent/TimeUnit;)Lcom/zaxxer/hikari/util/ConcurrentBag$IConcurrentBagEntry;isMarkedEvictedlastAccessed(JJ)JisConnectionAlive(Ljava/sql/Connection;)ZmetricsTrackerIMetricsTrackerDelegate9Lcom/zaxxer/hikari/pool/PoolBase$IMetricsTrackerDelegate;7com/zaxxer/hikari/pool/PoolBase$IMetricsTrackerDelegaterecordBorrowStats&(Lcom/zaxxer/hikari/pool/PoolEntry;J)VscheduleJ(Lcom/zaxxer/hikari/pool/PoolEntry;)Lcom/zaxxer/hikari/pool/ProxyLeakTask;createProxyConnection>(Lcom/zaxxer/hikari/pool/ProxyLeakTask;J)Ljava/sql/Connection;releaserecordBorrowTimeoutStatsjava/lang/Thread
currentThread()Ljava/lang/Thread;	interrupt*(Ljava/lang/String;Ljava/lang/Throwable;)Vclose$java/util/concurrent/ScheduledFuturecancel(Z)ZgetLoginTimeoutawaitTermination#(JLjava/util/concurrent/TimeUnit;)ZshutdownNetworkTimeoutExecutorcancelLeakTaskgetPoolEntryisClosedsafeIsAssignableFrom'(Ljava/lang/Object;Ljava/lang/String;)Z((Lcom/codahale/metrics/MetricRegistry;)V0(Lio/micrometer/core/instrument/MeterRegistry;)VgetPoolName/com/zaxxer/hikari/metrics/MetricsTrackerFactorycreated(Ljava/lang/String;Lcom/zaxxer/hikari/metrics/PoolStats;)Lcom/zaxxer/hikari/metrics/IMetricsTracker;.(Lcom/zaxxer/hikari/metrics/IMetricsTracker;)V:com/zaxxer/hikari/metrics/dropwizard/CodahaleHealthCheckerregisterHealthChecksw(Lcom/zaxxer/hikari/pool/HikariPool;Lcom/zaxxer/hikari/HikariConfig;Lcom/codahale/metrics/health/HealthCheckRegistry;)Vjava/util/Collectionsizesubmit>(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;java/lang/IntegervalueOf(I)Ljava/lang/Integer;debug((Ljava/lang/String;[Ljava/lang/Object;)VgetCount(I)IgetWaitingThreadCountvalues()Ljava/util/List;
??

?acceptB(Lcom/zaxxer/hikari/pool/HikariPool;)Ljava/util/function/Consumer;java/util/ListforEach (Ljava/util/function/Consumer;)V(Ljava/lang/String;)VsuspendresumeisDebugEnabledrecordConnectionUsagerequite=(Lcom/zaxxer/hikari/util/ConcurrentBag$IConcurrentBagEntry;)Vremove=(Lcom/zaxxer/hikari/util/ConcurrentBag$IConcurrentBagEntry;)Z

?run`(Lcom/zaxxer/hikari/pool/HikariPool;Ljava/sql/Connection;Ljava/lang/String;)Ljava/lang/Runnable;execute(Ljava/lang/Runnable;)VgetStateCountsnewPoolEntrygetMaxLifetime&java/util/concurrent/ThreadLocalRandomcurrent*()Ljava/util/concurrent/ThreadLocalRandom;nextLongH(Lcom/zaxxer/hikari/pool/HikariPool;Lcom/zaxxer/hikari/pool/PoolEntry;)V\(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;setFutureEol)(Ljava/util/concurrent/ScheduledFuture;)VgetKeepaliveTimesetKeepalivegetCause()Ljava/lang/Throwable;error9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)VlastConnectionFailure-Ljava/util/concurrent/atomic/AtomicReference;+java/util/concurrent/atomic/AtomicReferenceset'(Ljava/lang/String;Ljava/lang/Object;)V(I)Ljava/util/List;iterator()Ljava/util/Iterator;hasNextnextabort"(Ljava/util/concurrent/Executor;)VquietlyCloseConnectionaddgetLastConnectionFailure()Ljava/lang/Exception;markEvictedreservegetScheduledExecutorjava/util/Optional
ofNullable((Ljava/lang/Object;)Ljava/util/Optional;

?getB(Lcom/zaxxer/hikari/pool/HikariPool;)Ljava/util/function/Supplier;	orElseGet1(Ljava/util/function/Supplier;)Ljava/lang/Object;W(ILjava/util/concurrent/ThreadFactory;Ljava/util/concurrent/RejectedExecutionHandler;)V1setExecuteExistingDelayedTasksAfterShutdownPolicy(Z)VsetRemoveOnCancelPolicyshutdownNow'(Lcom/zaxxer/hikari/pool/HikariPool;J)VrecordConnectionTimeoutgetSQLState(J)Ljava/lang/StringBuilder;<(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)VsetNextException(Ljava/sql/SQLException;)V(Ljava/lang/String;Z)V?????????"java/lang/invoke/LambdaMetafactorymetafactory?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$Lookupjava/lang/invoke/MethodHandles1
	
A c! d"#$#%&'()*+*,-'./0123456'7*89:??*+?	*
??*?
????*?????*?Y*??*?Y*??*?Y*??*+??
? Y?!??"?#**?$?%*?&+?'?*+?'?(?*+?)?**+?+?,**?-+?.M+?/>?0Y?1:*?2?3*?4Y?5*?6?78?7?9,?:Y?;??7?9,??Y?@?A?B*?CY+?D*?%?E?**?%?FY*?GH*??
?J?KL?M?l+?N
??c*?=?O?P?Q?R*?=?O?P?Q?S?T7?U+?N??*?V+?W??
H??X???*?=?S*?=?R?;? lIQ#R8WEXSn_owqs?u?v?y?|?~?????????????(?H?Y?k?}???????????<>?7=?>??@A?
BC?D??EFG??EHI@?qJKJ?JKJL ??JKMN&?OP:3	**?Y?Z?;?<	>?QpOR:?*?#?[?TB7*??
?\?]:??}?T7?^?!?_?`*???/*?a?b?#*?^?c?d?e!?Ue7?+*?f!?g*??h?i:
*?#?j
?	???p*?f!?k*!?l?:?n?o?pY?4Y?5*?6?7q?7?9?r?:*?#?j???m???m?????;Z?????$?'?,?R?g?r?~?????????????????????<H{ST,nU?V?&WX?>??Y?=IZ
??Z?*?JZJZ?JZJZ[
?'?J\g]Qp!^_:wN*?s*?=? *?tYuS?v**?-*?f?w?*?tYxS?v*?K?*?K?yW*?K*?z*?=?{*?=*?|??}W*?~*??*???/?4Y?5*?6?7??7?9*???.??Y?@?AL?TA*+??*?z*?V? ?U???????+??+????W?:+??+????W?*??*?B?{*?B???}W*?tYuS?v**?-*?f?w?$:*?tYuS?v**?-*?f?w????????,)
,,.,;?(??(?)?6?=?H?M?Q?X?g?k?r???????????????????????????????
 ),;AJM< ?!`?labN>?I!)#?Wc? U]?7J] Qmde:?'+??M,??*,???+?????W?N?	"%p;	"%&< '>?'fg"hiI:?JjkJZ[?JjkJZ[Flmn:?D+?+????*??Y+?????(?'+?+????*??Y+?????(?*?(?;"
#%,&>)C+<D>?DopIqr:y/+?"*??Y+*????*???????f?*??Y???f?;45#8.:</>?/stI#
un:V+?**??+?????;DEG<>?vpIwx:?T*?3??d??=?*?=*???W?/*????Y*?6SY??SY*?3????S???;QRS'VSX< T>?Ty@z{I
@?+|}:3	*????;b<	>?~}:3	*????;i<	>?}:2*????;p<>??}:2*????;w<>??_:A*???*?????;
~<>?!?_:?=*?#?"?!??Y?4Y?5*?6?7??7?9???*?s?*?#??*?s?;?
?(?0?7?<?<=>?I(!?_:\*?s?*?s*?*?#???;??
???<>?I???:?\*????R*????Y*?6SY+??	+2??SY*?V??SY*????SY*????SY*????S???;??1?V?[?<\>?\??I:?+J??[???J??[???-??:O*?f+??*?+???;?
??<>?ST??:} *?+???+??N*?B*-,?????;????<*fg >? ST ? I??:2*????;?<>???:?
?*??L*????A 	??= ????? ?m?ħ	7 e7+*?%??Y*+???
????*????7	??5???m??7e7+*?%??Y*+???
?J??+?L*?s?*??*?6+?Ϲ?*??+?ҧL*?s?*??*?6+?????????;V??
??,?2?M?V?]?k?r?????????????????????<f
,!?2?k$?r??ST
??V;??"W??W??>?I#?)Z@"?A?J?"B?"?_:?a*???/*?Vd*???W*??d?Q*?3??d<?*??*?6??=?#*?=d?
*??*???W???ޱ;&9@	Z`< ;%?a>?&;?I#?9?V??J???	??:6c*??ع?M,???N,???]N-??:+??*?-??W?':*޶?*?-??W?:*?-??W?????'/;?'/Q;EQQSQ;6
!'/8;=ENQ\_b <4=W?'8fg!>STc>?cabI+???,Jc?Zj]U]?
??_:3?*???N@	????TB*?:?9*???W?#*???*??*?6?a???*???߱*???͙**????
??X!?U????	??**???;J*+,/123(415H8S;T>^?iBsC|E?F?H<*ZST?>???x=I???4Z
? ??:Y*??*?6+??*?~??Y+??;RST<>?????:+???*?+??*+,?e??;fghil<*>?ST? ?{I??:?F*?????7*???.??*??????L??Y+??Y???M,??,??,?*????;x
y!z2{7|<}>?< !BC2??F>?I>?_:P*?????
*?%??W?;?
??<>?I??::??Y*?
????;?<>???:?r*?tY?S?v*?f??N*??:?p??p??N??Y?4Y?5*?6?7??7?U????7?9-?:?p?
?p??;*
?
????&?/?]?e?o?<4r>?r=Z? T??]??I?/[]??lA??:/*??;G<>?A??:/*??;G<>???:J ?Y?4Y?5*?6?7?7?9??;y< >???:e*+,??*?s?*??;??
??< >?fg? I??:?*+?W?;~<>?ST??:/*??;G<????:/*??;G<????:/*??;G<????:/*??;G<????:/*??;G<????:/*??;G<????:P*+,??;G<*???T? ?{????
	?

?
F

????	:	?	?w?~??	?
?	GK???? ????????????




© 2015 - 2024 Weber Informatics LLC | Privacy Policy