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
???? 4??
??
?? ? ? ?
? ?
? ?
? ?
? ?
???
?? ?
?
?? ? ? ?
? ?
? ?
? ?
? ?
? ??
$? ?
??L? ??
??
?-???? ?
??-?-?-?
?,?,??
<?
$??
1?L?
$? ??
?
D?
?-?
?-?
?-?
?
??-?
?
?-?L??
? ??
W? }?
??
?
????
????
c??
c?
c?
b?????J?J??L?J??I?
?
?
?
?
?
?
?
??
???
??
?
?
} }
??
?
L
-?-
?
!"#$%
<?L&-'(
0?L)
0*+
?,,-.L/-0-123L45-67
?89
:
;<=
?>
?@B
?C
DE
WF
WGH ??? ?I ?
?J }KL MN
cO
cPQRST ?UV InnerClassesW NopMetricsTrackerDelegateX MetricsTrackerDelegateY 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;
StackMapTableZ 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;
closureReason isConnectionAlive (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; dsa
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;b setLoginTimeout (Ljavax/sql/DataSource;)V stringFromResetBits (I)Ljava/lang/String; ndx bits sb Ljava/lang/StringBuilder;
SourceFile
PoolBase.java &com/zaxxer/hikari/pool/ProxyConnection< com/zaxxer/hikari/pool/PoolBasecde ? ? ? ? ?f ? ?g ?
h
hi &com/zaxxer/hikari/SQLExceptionOverride java/lang/Objectjkl ? ?mmn ? ? ?ohp ? ?q> ? ?r> ? ? +java/util/concurrent/atomic/AtomicReference ? ?N< {} - Closing connection {}: {}stuvwxylmz< java/sql/SQLException java/lang/Exception !{} - Closing connection {} failed{|}~?<??ef?? java/lang/Throwable???? `{} - Failed to validate connection {} ({}). Possibly consider using a shorter maxLifetime value.??t??
com/zaxxer/hikari/pool/PoolEntry\]??h???h?????????????????h {} - Reset ({}) on connection {}{| 'java/util/concurrent/ThreadPoolExecutor??=??y?h??? true hikaricp.jmx.register2.0??? javax/management/ObjectName java/lang/StringBuilder 'com.zaxxer.hikari:type=PoolConfig,name=??? !com.zaxxer.hikari:type=Pool,name= #com.zaxxer.hikari:type=PoolConfig ( ) com.zaxxer.hikari:type=Pool (???? ){} - JMX name ({}) is already registered.???? #{} - Failed to {} management beans.
unregister?????????1 javax/sql/DataSource??? 'com/zaxxer/hikari/util/DriverDataSource? javax/naming/InitialContext?? javax/naming/NamingException =com/zaxxer/hikari/pool/HikariPool$PoolInitializationException PoolInitializationException?yzrs??>?]?? (java/sql/SQLTransientConnectionException %DataSource returned null unexpectedly_` ? ??y?? #(Failed to create/setup connection) !./ *{} - Failed to create/setup connection: {}s?hi?ha` ??no 8com/zaxxer/hikari/pool/PoolBase$ConnectionSetupExceptionb`d` java/lang/AbstractMethodError 4{} - Failed to execute{} connection test query ({}). $ isValid() for connection, configure ?tm? ?{} - Default transaction isolation level detection failed ({}).??? 08??e? 4{} - Failed to set query timeout for statement. ({})????l? 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 network timeout executor???????? java/lang/Integer?w|?y? 6{} - Failed to set login timeout for data source. ({}) ? ? , ???? java/lang/String readOnly
autoCommit isolation
netTimeout !com/zaxxer/hikari/pool/PoolBase$1 9com/zaxxer/hikari/pool/PoolBase$NopMetricsTrackerDelegate 6com/zaxxer/hikari/pool/PoolBase$MetricsTrackerDelegate 7com/zaxxer/hikari/pool/PoolBase$IMetricsTrackerDelegate com/zaxxer/hikari/HikariConfig java/sql/Statement java/sql/Connection 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 java/lang/Math max (JJ)J isValid (I)Z rollback createStatement ()Ljava/sql/Statement; execute (Ljava/lang/String;)Z
addSuppressed (Ljava/lang/Throwable;)V 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; append -(Ljava/lang/String;)Ljava/lang/StringBuilder; 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 &(Lcom/zaxxer/hikari/pool/PoolBase$1;)V getThreadFactory &()Ljava/util/concurrent/ThreadFactory; (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 length setLength ? ? ? ? ? ? ? ? @ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
?
B I ?*? *? ? *+? *? *+? ? *+?
? *+? ?
*+? ? *+? ? ? ? ? *+? ? ? *? *? *+? ? ? ? *+? ? *+? ? *+? ? !*+? "? #*? $Y? %? &*? '? R ] 7
^ ` a b ' c / d 7 e K f V h [ i ` j p k x m ? n ? o ? p ? r ? s ? ? ? ? # ? l ? / *? ? y ! # q+? o*? (? Y*? SY+SY,S? ) *+? * +? -? .+? / ? N+? / ? :+? / ?? "N*? 2? Y*? SY+SY-S? ) ? " 0 9 0 " 0 C C E C N Q 1 : ? ? " ? 0 ? 6 ? 9 ? : ? @ ? C ? K ? N ? Q ? R ? p ? * R "# q q$% q&