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
????7??
??
??	??	???
??
??
??	??	??	??
?	??
?	??
?	??
?	?
I??
 ?	 ?	?
?	?
?
I?
?
I?
?
I?
?
?
I?
I??
0?	???
4?
??	???
9?
??	??
I?
=?	?
A?d	

I
	



Y
Y

I
?	

 

X	X	X
 
!	"#$
=%
X&
 '#(
)*
+,
+-.?
k0	123
4#5678
9
Y:
;
Y<=}>
?
5	@?
B
C
DEF
?G
?HI`J
KL
?MNO
?PQRS
?TU
IW
XYZ
?[\
??^
_`
a
b
Ycde
fg}h
i
j
k
lqrst?
?v
 w
x
 y}z{|
}
~
#?
?
?
X??
Y?
?
?
I?'
??(
???
???
X?
I??
??
X???
??}?	?
????}??
?r?????`???
?
?
??}??
?
??
???
??
X?
?
I?
???
?????
??
??
??
????
???#?
k???
??
??
?
??	?
?????PoolInitializationExceptionInnerClasses
KeepaliveTaskMaxLifetimeTaskCustomDiscardPolicyHouseKeeperPoolEntryCreatorloggerLorg/slf4j/Logger;POOL_NORMALI
ConstantValuePOOL_SUSPENDED
POOL_SHUTDOWN	poolStatealiveBypassWindowMsJhousekeepingPeriodMsEVICTED_CONNECTION_MESSAGELjava/lang/String;DEAD_CONNECTION_MESSAGEpoolEntryCreator4Lcom/zaxxer/hikari/pool/HikariPool$PoolEntryCreator;postFillPoolEntryCreatoraddConnectionQueueDepth+Ljava/util/concurrent/atomic/AtomicInteger;addConnectionExecutor)Ljava/util/concurrent/ThreadPoolExecutor;closeConnectionExecutor
connectionBag&Lcom/zaxxer/hikari/util/ConcurrentBag;	SignatureJLcom/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;hardTimeoutshutdown()VstartassassinExecutor?evictConnection(Ljava/sql/Connection;)V
connectionLjava/sql/Connection;proxyConnection(Lcom/zaxxer/hikari/pool/ProxyConnection;?setMetricRegistry(Ljava/lang/Object;)VmetricRegistryLjava/lang/Object;setMetricsTrackerFactory4(Lcom/zaxxer/hikari/metrics/MetricsTrackerFactory;)VmetricsTrackerFactory1Lcom/zaxxer/hikari/metrics/MetricsTrackerFactory;setHealthCheckRegistryhealthCheckRegistry
addBagItem(I)Vwaiting
queueDepth
countToAddgetActiveConnections()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;fillPool(Z)V
isAfterAddZ	shouldAdd?abortActiveConnections)(Ljava/util/concurrent/ExecutorService;)VLjava/lang/Throwable;&Ljava/util/concurrent/ExecutorService;??
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;sqlStateoriginalExceptionconnectionException*Ljava/sql/SQLTransientConnectionException;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
SourceFileHikariPool.javaNestMembers8com/zaxxer/hikari/util/ConcurrentBag$IConcurrentBagEntryIConcurrentBagEntry78!com/zaxxer/hikari/pool/HikariPool???%com.zaxxer.hikari.aliveBypassWindowMs??????????'com.zaxxer.hikari.housekeeping.periodMs??2com/zaxxer/hikari/pool/HikariPool$PoolEntryCreator7?"#
After adding 7?$#)java/util/concurrent/atomic/AtomicInteger7V%&$com/zaxxer/hikari/util/ConcurrentBag7?*+??(com/zaxxer/hikari/util/SuspendResumeLock?101??23?V??ef??ab??ib?????q(java/util/concurrent/LinkedBlockingQueue7l? BootstrapMethods?5com/zaxxer/hikari/pool/HikariPool$CustomDiscardPolicy'(8java/util/concurrent/ThreadPoolExecutor$CallerRunsPolicyCallerRunsPolicy)(+com/zaxxer/hikari/pool/ProxyLeakTaskFactory?7	./-com/zaxxer/hikari/pool/HikariPool$HouseKeeper
45"com.zaxxer.hikari.blockUntilFilled
?qll??sqq JM!V"# com/zaxxer/hikari/pool/PoolEntry$?%&\]'((connection was evicted)(connection is dead)??)+,-./0123V4??java/lang/InterruptedException5678Vjava/sql/SQLException97:java/lang/StringAfter shutdown xy;VBefore shutdown <=>uVUV??@A9Timed-out waiting for add connection executor to shutdownBC?V?@D??5Timed-out waiting for connection assassin to shutdownEV;Timed-out waiting for close connection executor to shutdown&com/zaxxer/hikari/pool/ProxyConnectionFVG?(connection evicted by user)H???#com.codahale.metrics.MetricRegistryIJBcom/zaxxer/hikari/metrics/dropwizard/CodahaleMetricsTrackerFactory#com/codahale/metrics/MetricRegistry7K+io.micrometer.core.instrument.MeterRegistryDcom/zaxxer/hikari/metrics/micrometer/MicrometerMetricsTrackerFactory+io/micrometer/core/instrument/MeterRegistry7L6com/zaxxer/hikari/pool/PoolBase$MetricsTrackerDelegateMetricsTrackerDelegateM???NOP7Q9com/zaxxer/hikari/pool/PoolBase$NopMetricsTrackerDelegateNopMetricsTrackerDelegate/com/codahale/metrics/health/HealthCheckRegistryRSTUqVqWXA{} - Add connection elided, waiting={}, adders pending/running={}java/lang/ObjectYZ[\]^_`qaqbcdbe?fghijjava/lang/IllegalStateExceptionk7ClV??mVn?7{} - {}stats (total={}, active={}, idle={}, waiting={})pqrqtqo?pqrs;KVtuvwxy?z?{?|}~?1com/zaxxer/hikari/pool/HikariPool$MaxLifetimeTask7?/?????/com/zaxxer/hikari/pool/HikariPool$KeepaliveTask??8com/zaxxer/hikari/pool/PoolBase$ConnectionSetupException={} - Error thrown while acquiring connection from data source????????bjava/lang/Exception/{} - Cannot acquire connection from data source\?[{} - Fill pool skipped, pool has sufficient level or currently being filled (queueDepth={}.b?????????java/lang/Throwable$(connection aborted during shutdown)?????q{} - Added connection {}??7(initialization check complete and minimumIdle is zero)????*{} - Exception during pool initialization.=com/zaxxer/hikari/pool/HikariPool$PoolInitializationException7??V?s????????U???"java/util/concurrent/ThreadFactory0java/util/concurrent/ScheduledThreadPoolExecutor5java/util/concurrent/ThreadPoolExecutor$DiscardPolicy
DiscardPolicy7??????c#com/zaxxer/hikari/pool/HikariPool$17?Timeout failure ?V??(java/sql/SQLTransientConnectionException??7???????6com/zaxxer/hikari/util/UtilityElf$DefaultThreadFactoryDefaultThreadFactory?7?(connection evicted)com/zaxxer/hikari/pool/PoolBase"com/zaxxer/hikari/HikariPoolMXBean6com/zaxxer/hikari/util/ConcurrentBag$IBagStateListenerIBagStateListenercom/zaxxer/hikari/HikariConfig'java/util/concurrent/ThreadPoolExecutorjava/sql/Connectionorg/slf4j/Logger[Ljava/lang/Object;java/util/concurrent/Callablejava/util/Iterator$java/util/concurrent/ExecutorServiceorg/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()JSECONDS&(Lcom/zaxxer/hikari/pool/HikariPool;)V8(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)VgetThreadFactorygetMaximumPoolSizepoolName
?? connection addermakeConcatWithConstants&(Ljava/lang/String;)Ljava/lang/String;!com/zaxxer/hikari/util/UtilityElfcreateThreadPoolExecutor?(Ljava/util/concurrent/BlockingQueue;Ljava/lang/String;Ljava/util/concurrent/ThreadFactory;Ljava/util/concurrent/RejectedExecutionHandler;)Ljava/util/concurrent/ThreadPoolExecutor; connection closer?(ILjava/lang/String;Ljava/util/concurrent/ThreadFactory;Ljava/util/concurrent/RejectedExecutionHandler;)Ljava/util/concurrent/ThreadPoolExecutor;getLeakDetectionThreshold3(JLjava/util/concurrent/ScheduledExecutorService;)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)JisConnectionDead(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- - Interrupted during connection acquisition*(Ljava/lang/String;Ljava/lang/Throwable;)Vclose$java/util/concurrent/ScheduledFuturecancel(Z)ZgetLoginTimeoutawaitTermination#(JLjava/util/concurrent/TimeUnit;)Zwarn(Ljava/lang/String;)V connection assassinatorshutdownNetworkTimeoutExecutorcancelLeakTask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;)VgetincrementAndGetsubmit>(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;java/lang/IntegervalueOf(I)Ljava/lang/Integer;debug((Ljava/lang/String;[Ljava/lang/Object;)VgetCount(I)IsizegetWaitingThreadCountvalues()Ljava/util/List;
??
?acceptB(Lcom/zaxxer/hikari/pool/HikariPool;)Ljava/util/function/Consumer;java/util/ListforEach (Ljava/util/function/Consumer;)V - is not suspendablesuspendresumeisDebugEnabledrecordConnectionUsagerequite=(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(I)Ljava/util/List;iterator()Ljava/util/Iterator;hasNextnextabort"(Ljava/util/concurrent/Executor;)VquietlyCloseConnectionaddinfogetLastConnectionFailure()Ljava/lang/Exception;markEvictedreservegetScheduledExecutorjava/util/Optional
ofNullable((Ljava/lang/Object;)Ljava/util/Optional;
?B(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;)V1setExecuteExistingDelayedTasksAfterShutdownPolicysetRemoveOnCancelPolicyshutdownNow'(Lcom/zaxxer/hikari/pool/HikariPool;J)VrecordConnectionTimeoutgetSQLState= - Connection is not available, request timed out after ms.'(Ljava/lang/String;J)Ljava/lang/String;<(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)VsetNextException(Ljava/sql/SQLException;)V
 housekeeper(Ljava/lang/String;Z)V???????????$java/lang/invoke/StringConcatFactory?Lookup?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;"java/lang/invoke/LambdaMetafactorymetafactory?(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 ^! _"#$#%&'()(*+,-./012345,6#789??*+?*??*??
???
*??
???*?Y*??*?Y*??*?Y??*?Y*??*+??
? Y?!??"?#**?$?%*?&+?'?*+?'?(?*+?)?**+?+?,**?-+?.M+?/>?0Y?1:**?2?3,?4Y*?5?6?7**?2?8,?9Y?:?;?<*?=Y+?>*?%???@**?%?AY*?BC*???E?FG?H?l+?I
??c*?7?J?K?L?M*?7?J?K?L?N?O7?P+?I??*?Q+?R??C?
?S???*?7?N*?7?M?:? ]:B#C8HDIRJ]_i`?b?d?f?g?j?m?o?q?s?t?u?v?xz0|A}S~e?j?????????;>j7<?=>??@??AB??C??DEF??DGH@?{I?I  ??I?0&?JK93	**?T?U?:?;	=>LkJM9?*?#?V?OB7*???W?X:??}?O7?Y?!?Z?[*?
??/*?\?]?#*?Y?^?_?`!?Pe7?+*?a!?b*?@?c?d:
*?#?e
?	???p*?a!?f*!?g?:?i?j?kY*?2?l?m?:*?#?e???h???h?????:Z?????$?'?,?R?g?r?~?????????????????????;H{NO,nP?Q?RS?=>?T?<HZ
??X?*?XX?XXo
?'?hZ?Lk!UV9?m*?n*?7? *?oYpS?q**?-*?a?r?*?oYsS?q*?F?*?F?tW*?F*?u*?7?v*?7*?w??x?*?y?z*?{*??|*?}?/*?2?~*?}?.?9Y?:?;L?OA*+?*?u*?Q? ?P???
????+?v+???x?2*???z?$:+?v+???x?*???z?*??*?H&)#&?0Y? ^?????%^? LhZ[9?'+??M,??*,???+??????W?N?	"%k:		"
%&; '=>'\]"^_H:?`?Xo?`?XoFkab9?D+?+????*??Y+?????(?'+?+????*??Y+?????(?*?(?:
,> C";D=>DcdHef9y/+?"*??Y+*?}??*???????a?*??Y???a?:+,#/.1;/=>/ghH#
ib9V+?**?}+?????:;<>;=>jdHkl9?L*???=d>?*???W*?7*???W?'*????Y*?2SY??SY??S???:HIJKL'OKQ;*L=>LmDn@oH?'#pq93	*????:[;	=>rq93	*????:b;	=>sq92*????:i;=>tq92*????:p;=>uV9A*???*?????:
wx;=>!vV9x0*?#?"???Y*?2?????*?n?*?#??*?n?:~
?#?*?/?;0=>H!wV9]*?n?*?n*??*?#???:??
???;=>H?xy9?\*????R*????Y*?2SY+??	+2??SY*?Q??SY*????SY*????SY*????S???:?? ?1?V?[?;\=>\z{H:?+|}o~~?|}o~~?-?9O*?a+??*?+???:?
??;=>NO??9} *?+???+??N*?<*-,?????:????;*\] => NO ? H??92*????:?;=>??9?
?*??L*?}??A 	??= ????? ?m?ħ	7 e7+*?%??Y*+???????*?}??7	??5???m??7e7+*?%??Y*+????E??+?L*?n?*??*?2+?Ϲ?*??+?ҧL*?n?*??*?2+?????????:V??
??,?2?M?V?]?k?r?????????????????????;f
,!?2?k$?r??NO
??V;??"R??R??=>H#?)X@"?A??"B?"??9-|*???=*???d>*?Q*?}?/?*??*?}?R?*????6?%*???W*?7?
*??*???W??*??*?2?????:.??!=BJdh	{;4|=>|??tnjo=???H1?6@?Y?Y???96c*??׹?M,???N,???XN-??:+??*?-??W?':*ݶ?*?-??W?:*?-??W?????'/;?'/Q;EQQSQ:6
!'/8;=ENQ\_b ;4=R?'8\]!>NOc=>cX?H+???,??X`?U??
??V93?*?}?I@	????OB*??:?9*?}?R?#*???*??*?2?\???*???ޱ*???͙**????
?
?S!?P????	??**???:J*+,/123(415H8S;T>^?iBsC|E?F?H;*ZNO?=>??x<H???4X
? ??9Y*??*?2+??*?{??Y+??:RST;=>????9+???*?+??*+,?`??:fghil;*=>NO? ??H??9?F*?}???7*?}?.??*??????L??Y+??Y???M,??,??,?*?}??:x
y!z2{7|<}>?; !AB2??F=>H>?V9P*?}???
*?%??W?:?
??;=>H??9:??Y*?
?
???:?;=>??9?]*?oY?S?q*?a??N*??:?k??k??N??Y*?2?P??-??:?k?
?k??:*
?
????&?/?H?P?Z?;4]=>]<E? ???H??H?/o??*?A??9/*??:8;=>A??9/*??:8;=>??9<?Y*?2???:y;=>??9f*+,??*?n?*???:??
??; =>\]? H??9?*+??W?:w;=>NO??????4A???
	??
4A????	9Y?	?V?]?Y?	??	?	#*????J
?????/?Amnop?um???m???????




© 2015 - 2024 Weber Informatics LLC | Privacy Policy