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?
&??
?? ? ? ?
"? ?
"? ?
"? ?
"? ?
"? ?
"?
?? ? ? ?
"? ?
"? ?
"? ?
"? ?
"? ??
!? ?
???S?.? ??
??
?.??
/???? ?
??.?.?.?
?4?4?
!??
2?S?
!? ??
?
C?
?.?
?.?
?.?
?
??.?
?
?.?S??
? ??
V? v?
??
"?
????
??? ?
a? ? ? ?Q?Q??S?Q??P?
"
"
"
"
"
"
"
?
b
b
y
}?
}
?
k
kS v v
??
!" #$ ?%&
?'
(
)*
+.?.,
- .
"/
01
? 2
3
45678
/?S9.:;
1?S<
1=>
??4@ASB.C.DEFSGH.IJ
?KL
&M
NOP
??
"QR ?
??
UV
VW
VXY ??? Z ?[ ?
?\ v]^_`
?a b
?c
?defg ?hi
?j
?kl NopMetricsTrackerDelegate InnerClassesm MetricsTrackerDelegaten 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 MINIMUM_LOGIN_TIMEOUT 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;
StackMapTableo 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;
closureReasonp isConnectionDead (Ljava/sql/Connection;)Z statement Ljava/sql/Statement; validationSecondsq 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; registerrstu initializeDataSource ic Ljavax/naming/InitialContext; Ljavax/naming/NamingException; jdbcUrl credentials $Lcom/zaxxer/hikari/util/Credentials; dsClassName driverClassName dataSourceJNDI dataSourceProperties Ljava/util/Properties; dsvw
newConnection ()Ljava/sql/Connection; username password start id Ljava/util/UUID;x 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;y setLoginTimeout (Ljavax/sql/DataSource;)V stringFromResetBits (I)Ljava/lang/String; ndx bits sb Ljava/util/StringJoiner;
SourceFile
PoolBase.java NestMembers &com/zaxxer/hikari/pool/ProxyConnectionC com/zaxxer/hikari/pool/PoolBasez{| ? ? ? ?
}$ ? ?~$ ??? ? ??$????$?$ ? ??E ? ??E ? ? +java/util/concurrent/atomic/AtomicReference ? ?UC {} - Closing connection {}: {} java/lang/Object????????yz?C java/lang/Throwable?? java/sql/SQLException java/lang/Exception !{} - Closing connection {} failed??????C??rs???? `{} - Failed to validate connection {} ({}). Possibly consider using a shorter maxLifetime value.?$???? com/zaxxer/hikari/pool/PoolEntryde????????????$???????$??? {} - Reset ({}) on connection {}?? 'java/util/concurrent/ThreadPoolExecutor??D??????? true hikaricp.jmx.register2.0??? javax/management/ObjectName BootstrapMethods???????????? ){} - JMX name ({}) is already registered.???? #{} - Failed to {} management beans.
unregister?$???$?$?$???8 javax/sql/DataSource????? 'com/zaxxer/hikari/util/DriverDataSource?$?$? javax/naming/InitialContext?? javax/naming/NamingException =com/zaxxer/hikari/pool/HikariPool$PoolInitializationException PoolInitializationException??????E?? 3{} - Attempting to create/setup new connection: {} #$???e?? (java/sql/SQLTransientConnectionException %DataSource returned null unexpectedlylm #{} - Established new connection: {} ? ????? *(Failed to create/setup connection for id:??'(56 -{} - Failed to create/setup connection: {} {}uv?nm
?${| 8com/zaxxer/hikari/pool/PoolBase$ConnectionSetupExceptionomqm java/lang/AbstractMethodError 4{} - Failed to execute{} connection test query ({}). $ isValid() for connection, configure ???? ?{} - Default transaction isolation level detection failed ({}).???$ 08??r? 4{} - Failed to set query timeout for statement. ({})????y? 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.?C Mysql?? mysql????$ 3com/zaxxer/hikari/pool/PoolBase$SynchronousExecutor?? 6com/zaxxer/hikari/util/UtilityElf$DefaultThreadFactory DefaultThreadFactory??? ? java/lang/Integer ???? 6{} - Failed to set login timeout for data source. ({}) java/util/StringJoiner , ? java/lang/String readOnly
autoCommit isolation
netTimeout )com.zaxxer.hikari.minimumLoginTimeoutSecs
? 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; "com/zaxxer/hikari/util/Credentials java/util/Properties java/util/UUID "java/util/concurrent/ThreadFactory org/slf4j/LoggerFactory getLogger %(Ljava/lang/Class;)Lorg/slf4j/Logger;
getCatalog getSchema ()Z getExceptionOverride *()Lcom/zaxxer/hikari/SQLExceptionOverride; getTransactionIsolation !com/zaxxer/hikari/util/UtilityElf (Ljava/lang/String;)I getConnectionTestQuery getPoolName getConnectionTimeout getValidationTimeout debug ((Ljava/lang/String;[Ljava/lang/Object;)V isClosed 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 getCredentials &()Lcom/zaxxer/hikari/util/Credentials; getDataSourceClassName getDriverClassName getDataSourceJNDI getDataSourceProperties ()Ljava/util/Properties;
getDataSource createInstance J(Ljava/lang/String;Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object; "com/zaxxer/hikari/util/PropertyElf setTargetFromProperties +(Ljava/lang/Object;Ljava/util/Properties;)V getUsername getPassword 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
randomUUID ()Ljava/util/UUID;
getConnection ;(Ljava/lang/String;Ljava/lang/String;)Ljava/sql/Connection;
elapsedMillis recordConnectionCreated (J)V concat
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 java/util/concurrent/Executors newCachedThreadPool L(Ljava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ExecutorService; setKeepAliveTime #(JLjava/util/concurrent/TimeUnit;)V allowCoreThreadTimeOut MILLISECONDS (II)I (Ljava/lang/CharSequence;)V add 2(Ljava/lang/CharSequence;)Ljava/util/StringJoiner;
getInteger ((Ljava/lang/String;I)Ljava/lang/Integer; intValue? $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 &