com.zaxxer.hikari.pool.PoolBase.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
???? 7??
??
?? ? ? ?
? ?
? ?
? ?
? ?
???
?? ?
?
?? ? ? ?
? ?
? ?
? ?
? ?
? ??
$? ?
??J? ??
??
?%??
0???? ?
??%?%?%?
?+?+?
$??
3?J?
$? ??
?
D?
?%?
?%?
?%?
?
??%?
?
?%?J??
? ??
W? x?
??
?
????
??? ?
b? ? ? ?H?H??J?H??G?
?
?
?
?
?
?
?
??
???
z??
|?
|
?
x x
??
?
J
%?%
?
!"#
0?J$%%&
2?J'
2()
?*++,J-%.%/01J23%45
?67
8
9:;
??
<= ?
?@
AB
WC
WDE ??? ?F ?
?G xHIJ
?? K
?LM
?N
?O
?PQRST ?U
V NopMetricsTrackerDelegate InnerClassesW MetricsTrackerDelegateX IMetricsTrackerDelegate SynchronousExecutor ConnectionSetupException logger Lorg/slf4j/Logger; config Lcom/zaxxer/hikari/HikariConfig; metricsTracker 9Lcom/zaxxer/hikari/pool/PoolBase$IMetricsTrackerDelegate; poolName Ljava/lang/String; catalog lastConnectionFailure -Ljava/util/concurrent/atomic/AtomicReference; Signature DLjava/util/concurrent/atomic/AtomicReference; connectionTimeout J validationTimeout exceptionOverride (Lcom/zaxxer/hikari/SQLExceptionOverride; RESET_STATES [Ljava/lang/String;
UNINITIALIZED I
ConstantValue???? TRUE FALSE networkTimeout isNetworkTimeoutSupported isQueryTimeoutSupported defaultTransactionIsolation transactionIsolation netTimeoutExecutor Ljava/util/concurrent/Executor;
dataSource Ljavax/sql/DataSource; schema
isReadOnly Z isAutoCommit isUseJdbc4Validation isIsolateInternalQueries isValidChecked #(Lcom/zaxxer/hikari/HikariConfig;)V Code LineNumberTable LocalVariableTable this !Lcom/zaxxer/hikari/pool/PoolBase;
StackMapTableY toString ()Ljava/lang/String; recycle %(Lcom/zaxxer/hikari/pool/PoolEntry;)V quietlyCloseConnection *(Ljava/sql/Connection;Ljava/lang/String;)V e Ljava/lang/Exception;
connection Ljava/sql/Connection;
closureReasonZ isConnectionDead (Ljava/sql/Connection;)Z statement Ljava/sql/Statement; validationSeconds[ getLastConnectionFailure ()Ljava/lang/Exception; getUnwrappedDataSource ()Ljavax/sql/DataSource; newPoolEntry $()Lcom/zaxxer/hikari/pool/PoolEntry;
Exceptions resetConnectionState A(Ljava/sql/Connection;Lcom/zaxxer/hikari/pool/ProxyConnection;I)V proxyConnection (Lcom/zaxxer/hikari/pool/ProxyConnection; dirtyBits resetBits shutdownNetworkTimeoutExecutor ()V getLoginTimeout ()J Ljava/sql/SQLException; handleMBeans '(Lcom/zaxxer/hikari/pool/HikariPool;Z)V beanConfigName Ljavax/management/ObjectName; beanPoolName mBeanServer Ljavax/management/MBeanServer;
hikariPool #Lcom/zaxxer/hikari/pool/HikariPool; register\]^_ initializeDataSource ic Ljavax/naming/InitialContext; Ljavax/naming/NamingException; jdbcUrl username password dsClassName driverClassName dataSourceJNDI dataSourceProperties Ljava/util/Properties; ds`
newConnection ()Ljava/sql/Connection; start setupConnection (Ljava/sql/Connection;)V checkDriverSupport checkValidationSupport Ljava/lang/Throwable; checkDefaultIsolation setQueryTimeout (Ljava/sql/Statement;I)V
timeoutSec getAndSetNetworkTimeout (Ljava/sql/Connection;J)I originalTimeout timeoutMs setNetworkTimeout (Ljava/sql/Connection;J)V
executeSql +(Ljava/sql/Connection;Ljava/lang/String;Z)V sql isCommit createNetworkTimeoutExecutor =(Ljavax/sql/DataSource;Ljava/lang/String;Ljava/lang/String;)V
threadFactory $Ljava/util/concurrent/ThreadFactory; executor )Ljava/util/concurrent/ThreadPoolExecutor;a setLoginTimeout (Ljavax/sql/DataSource;)V stringFromResetBits (I)Ljava/lang/String; ndx bits sb Ljava/lang/StringBuilder;
SourceFile
PoolBase.java NestMembers &com/zaxxer/hikari/pool/ProxyConnection: com/zaxxer/hikari/pool/PoolBasebcd ? ? ? ? ?e ? ?f
?g
g
h &com/zaxxer/hikari/SQLExceptionOverride java/lang/Objectijk ? ?llm ? ? ?ngo ? ?p< ? ?q< ? ? +java/util/concurrent/atomic/AtomicReference ? ?L: {} - Closing connection {}: {}rstuvwxjky: java/lang/Throwablez{ java/sql/SQLException java/lang/Exception !{} - Closing connection {} failed|}~??:??cd???? `{} - Failed to validate connection {} ({}). Possibly consider using a shorter maxLifetime value.??s?? com/zaxxer/hikari/pool/PoolEntryZ[??g???g?????????????????g {} - Reset ({}) on connection {}yz 'java/util/concurrent/ThreadPoolExecutor??;??x?g??? true hikaricp.jmx.register2.0??? javax/management/ObjectName BootstrapMethods???????????? ){} - JMX name ({}) is already registered.???? #{} - Failed to {} management beans.
unregister?????????/ javax/sql/DataSource??? 'com/zaxxer/hikari/util/DriverDataSource? javax/naming/InitialContext?? javax/naming/NamingException =com/zaxxer/hikari/pool/HikariPool$PoolInitializationException PoolInitializationException{wxpq??<?[?? (java/sql/SQLTransientConnectionException %DataSource returned null unexpectedly]^ ? ??x?? #(Failed to create/setup connection),- *{} - Failed to create/setup connection: {}r?fg?g_^ ??lm 8com/zaxxer/hikari/pool/PoolBase$ConnectionSetupException`^b^ java/lang/AbstractMethodError 4{} - Failed to execute{} connection test query ({}). $ isValid() for connection, configure ?sl? ?{} - Default transaction isolation level detection failed ({}).??? 08??c? 4{} - Failed to set query timeout for statement. ({})????j? J{} - Driver does not support get/set network timeout for connections. ({}) p{} - A validationTimeout of less than 1 second cannot be honored on drivers without setNetworkTimeout() support.?? }{} - A validationTimeout with fractional second granularity cannot be honored on drivers without setNetworkTimeout() support.?: Mysql?? mysql???? 3com/zaxxer/hikari/pool/PoolBase$SynchronousExecutor?? 6com/zaxxer/hikari/util/UtilityElf$DefaultThreadFactory DefaultThreadFactory????????? java/lang/Integer?v}?w? 6{} - Failed to set login timeout for data source. ({}) java/lang/StringBuilder ? ??? , ???? java/lang/String readOnly
autoCommit isolation
netTimeout 9com/zaxxer/hikari/pool/PoolBase$NopMetricsTrackerDelegate 6com/zaxxer/hikari/pool/PoolBase$MetricsTrackerDelegate 7com/zaxxer/hikari/pool/PoolBase$IMetricsTrackerDelegate com/zaxxer/hikari/HikariConfig java/sql/Connection java/sql/Statement javax/management/MBeanServer !com/zaxxer/hikari/pool/HikariPool org/slf4j/Logger [Ljava/lang/Object; java/util/Properties "java/util/concurrent/ThreadFactory org/slf4j/LoggerFactory getLogger %(Ljava/lang/Class;)Lorg/slf4j/Logger;
getCatalog getSchema ()Z getExceptionOverrideClassName !com/zaxxer/hikari/util/UtilityElf createInstance J(Ljava/lang/String;Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object; getTransactionIsolation (Ljava/lang/String;)I getConnectionTestQuery getPoolName getConnectionTimeout getValidationTimeout debug ((Ljava/lang/String;[Ljava/lang/Object;)V java/util/concurrent/TimeUnit SECONDS Ljava/util/concurrent/TimeUnit; toMillis (J)J close
addSuppressed (Ljava/lang/Throwable;)V java/lang/Math max (JJ)J isValid (I)Z rollback createStatement ()Ljava/sql/Statement; execute (Ljava/lang/String;)Z set (Ljava/lang/Object;)V
getMessage warn get ()Ljava/lang/Object; ;(Ljava/sql/Connection;Lcom/zaxxer/hikari/pool/PoolBase;ZZ)V getReadOnlyState setReadOnly (Z)V getAutoCommitState
setAutoCommit getTransactionIsolationState ()I setTransactionIsolation (I)V getCatalogState equals (Ljava/lang/Object;)Z
setCatalog (Ljava/lang/String;)V getNetworkTimeoutState getSchemaState setSchema isDebugEnabled shutdownNow ()Ljava/util/List; toSeconds isRegisterMbeans &java/lang/management/ManagementFactory getPlatformMBeanServer ()Ljavax/management/MBeanServer; java/lang/System getProperty &(Ljava/lang/String;)Ljava/lang/String;
?? (com.zaxxer.hikari:type=PoolConfig,name= makeConcatWithConstants "com.zaxxer.hikari:type=Pool,name= %com.zaxxer.hikari:type=PoolConfig () com.zaxxer.hikari:type=Pool () isRegistered (Ljavax/management/ObjectName;)Z
registerMBean R(Ljava/lang/Object;Ljavax/management/ObjectName;)Ljavax/management/ObjectInstance; error 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V unregisterMBean (Ljavax/management/ObjectName;)V
getJdbcUrl getUsername getPassword getDataSourceClassName getDriverClassName getDataSourceJNDI getDataSourceProperties ()Ljava/util/Properties;
getDataSource "com/zaxxer/hikari/util/PropertyElf setTargetFromProperties +(Ljava/lang/Object;Ljava/util/Properties;)V a(Ljava/lang/String;Ljava/lang/String;Ljava/util/Properties;Ljava/lang/String;Ljava/lang/String;)V lookup &(Ljava/lang/String;)Ljava/lang/Object; "com/zaxxer/hikari/util/ClockSource currentTime
getConnection ;(Ljava/lang/String;Ljava/lang/String;)Ljava/sql/Connection;
elapsedMillis recordConnectionCreated (J)V
getAutoCommit getConnectionInitSql getSQLState
startsWith info getNetworkTimeout #(Ljava/util/concurrent/Executor;I)V '(Ljava/lang/String;Ljava/lang/Object;)V commit contains (Ljava/lang/CharSequence;)Z getClass ()Ljava/lang/Class; java/lang/Class getName getThreadFactory &()Ljava/util/concurrent/ThreadFactory; network timeout executor (Ljava/lang/String;Z)V java/util/concurrent/Executors newCachedThreadPool L(Ljava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ExecutorService; setKeepAliveTime #(JLjava/util/concurrent/TimeUnit;)V allowCoreThreadTimeOut MILLISECONDS (II)I append -(Ljava/lang/String;)Ljava/lang/StringBuilder; length setLength??? $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/MethodHandles$Lookup java/lang/invoke/MethodHandles ? ? ? ? ? ? ? ? @ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
?
B I ?*? *? ? *+? *? *+? ? *+?
? *+? ?
*+? ? *+? ? ? ? ? *+? ? ? *? *? *+? ? ? ? *+? ? *+? ? *+? ? !*+? "? #*? $Y? %? &*? '? R [ 5
\ ^ _ ` ' a / b 7 c K d V f [ g ` h p i x k ? l ? m ? n ? p ? q ? ? ? ? # ? l ? / *? ? w Z ?+? *? (? Y*? SY+SY,S? ) +N*+? * +? -? .-? '-? / ? :-? -? / ? :? 1?? N? "N*? 4? Y*? SY+SY-S? ) ? $ 2 ? 0 E K N 0 " Z ] 2 ^ a 3 2 ? ? " ? $ ? 2 ? ? ? Z ? ] ? ^ ? a ? b ? ? ? * b ! ? ?"# ?$ ? ? ? ? % ?% 0? % ?% 0 0? B 2 B 3 &' f
*+*? #? . 5*? #? 7??l=*? ? 3+? 8 ? ? >*+*? ?? .*? ? *? ? +? 9 ?+? : N*? ? *-? ;-*? ? ? < W-? '-? = ? :-? -? = ? :? 1?*+*? ?? .*? ? 6*? ? /+? 9 ? &:*+*? ?? .*? ? *? ? +? 9 ??M*? &,? >*? ?? Y*? SY+SY,? @S? A ? W s ? 0 ? ? ? 0 0 ? P ? ? ? ? ? N ? 3 P ? ? 3 r ? ? ? ? 0 ? : ? H ? N ? P ? W ? _ ? e ? s ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 4 W D() ?* ? ? + !
"# ]
? .@? ? ? +Z 0? %+ 0 0? ` 0? % 0 ? % A 3 ,- 5 *? &? B? 3? ? ./ / *? C? ? 01 ? ? DY*? E**?
*? ? F? ? 2 3 34 ? 6~? ,? G*?
? +*?
? H ?6~? ,? I*? ? +*? ? J ?6~? ,? K*? ? +*? ? L ?6~? )*? ? "*? ,? M? N? +*? ? O ?6~? ,? P*? ? *+*? ?? .?6 ~? )*? ? "*? ,? Q? N? +*? ? R ?6? 2*? ? S ? &*? T? Y*? SY*? USY+S? ) ? Z ? ? ? ? $ ? 5 ? ? ? E ? V ? ` ? f ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 4 "# 56 7 ? 8 ? ? $ ,",32 2 9: Q *? V? W? *? V? W? XW? ?
? ? ;<