com.zaxxer.hikari.HikariDataSource.class Maven / Gradle / Ivy
???? 4) "com/zaxxer/hikari/HikariDataSource com/zaxxer/hikari/HikariConfig javax/sql/DataSource java/io/Closeable HikariDataSource.java =com/zaxxer/hikari/pool/HikariPool$PoolInitializationException
!com/zaxxer/hikari/pool/HikariPool PoolInitializationException LOGGER Lorg/slf4j/Logger;
isShutdown +Ljava/util/concurrent/atomic/AtomicBoolean; fastPathPool #Lcom/zaxxer/hikari/pool/HikariPool; pool ()V
)java/util/concurrent/atomic/AtomicBoolean
this $Lcom/zaxxer/hikari/HikariDataSource; #(Lcom/zaxxer/hikari/HikariConfig;)V validate $
% copyStateTo ' #
( * {} - Starting... , getPoolName ()Ljava/lang/String; . /
0 org/slf4j/Logger 2 info '(Ljava/lang/String;Ljava/lang/Object;)V 4 5 3 6 #
8 : {} - Start completed. < seal >
?
configuration Lcom/zaxxer/hikari/HikariConfig;
getConnection ()Ljava/sql/Connection; java/sql/SQLException E isClosed ()Z G H
I java/lang/StringBuilder K
L HikariDataSource N append -(Ljava/lang/String;)Ljava/lang/StringBuilder; P Q
L R -(Ljava/lang/Object;)Ljava/lang/StringBuilder; P T
L U has been closed. W toString Y /
L Z (Ljava/lang/String;)V \
F ] C D
_
%
0 java/lang/Object c getCause ()Ljava/lang/Throwable; e f
g java/lang/Throwable i pie ?Lcom/zaxxer/hikari/pool/HikariPool$PoolInitializationException; result ;(Ljava/lang/String;Ljava/lang/String;)Ljava/sql/Connection; (java/sql/SQLFeatureNotSupportedException o
p username Ljava/lang/String; password getLogWriter ()Ljava/io/PrintWriter; getUnwrappedDataSource ()Ljavax/sql/DataSource; w x
y u v { java/io/PrintWriter } p setLogWriter (Ljava/io/PrintWriter;)V ? ? ? out Ljava/io/PrintWriter; setLoginTimeout (I)V ? ? ? seconds I getLoginTimeout ()I ? ? ? getParentLogger ()Ljava/util/logging/Logger; unwrap %(Ljava/lang/Class;)Ljava/lang/Object; 1(Ljava/lang/Class;)TT; java/lang/Class ?
isInstance (Ljava/lang/Object;)Z ? ?
? ? ? ? ? )Wrapped DataSource is not an instance of ? unwrappedDataSource Ljavax/sql/DataSource; iface Ljava/lang/Class; Ljava/lang/Class; isWrapperFor (Ljava/lang/Class;)Z (Ljava/lang/Class<*>;)Z ? ? ? Ljava/lang/Class<*>; setMetricRegistry (Ljava/lang/Object;)V getMetricRegistry ()Ljava/lang/Object; ? ?
? ? ?
? java/lang/IllegalStateException ? 'MetricRegistry can only be set one time ?
? ]
?
? metricRegistry Ljava/lang/Object; isAlreadySet Z setMetricsTrackerFactory 4(Lcom/zaxxer/hikari/metrics/MetricsTrackerFactory;)V getMetricsTrackerFactory 3()Lcom/zaxxer/hikari/metrics/MetricsTrackerFactory; ? ?
? ? ?
? .MetricsTrackerFactory can only be set one time ?
?
? metricsTrackerFactory 1Lcom/zaxxer/hikari/metrics/MetricsTrackerFactory; setHealthCheckRegistry getHealthCheckRegistry ? ?
? ? ?
? ,HealthCheckRegistry can only be set one time ?
?
? healthCheckRegistry isRunning poolState ? ?
? getHikariPoolMXBean &()Lcom/zaxxer/hikari/HikariPoolMXBean; getHikariConfigMXBean (()Lcom/zaxxer/hikari/HikariConfigMXBean; evictConnection (Ljava/sql/Connection;)V getClass ()Ljava/lang/Class; ? ?
d ? getName ? /
? ? com.zaxxer.hikari ? java/lang/String ?
startsWith (Ljava/lang/String;)Z ? ?
? ? ? ?
?
connection Ljava/sql/Connection; close java/lang/InterruptedException ? getAndSet (Z)Z ? ?
? {} - Shutdown initiated... ? shutdown ?
? {} - Shutdown completed. ? {} - Interrupted during closing warn 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V 3 java/lang/Thread
currentThread ()Ljava/lang/Thread;
interrupt
e Ljava/lang/InterruptedException; get H
HikariDataSource ( ) org/slf4j/LoggerFactory getLogger %(Ljava/lang/Class;)Lorg/slf4j/Logger;
Code LineNumberTable LocalVariableTable
StackMapTable
Exceptions LocalVariableTypeTable Signature InnerClasses
SourceFile ! B K *? *? Y? ? *? ? ! = , > ?" ! " # ? J*? *? Y? ? +? &+*? )? +-+? 1? 7 **?
Y*? 9Z? ? ;? +=+? 1? 7 *? @? ! &