com.huawei.opengauss.jdbc.util.SharedTimer.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opengaussjdbc Show documentation
Show all versions of opengaussjdbc Show documentation
HuaweiCloud JDBC for GaussDB
The newest version!
???? 4 ? *com/huawei/opengauss/jdbc/util/SharedTimer java/lang/Object SharedTimer.java
timerCount +Ljava/util/concurrent/atomic/AtomicInteger; LOGGER #Lcom/huawei/opengauss/jdbc/log/Log; timer Ljava/util/Timer; refCount ()V
)java/util/concurrent/atomic/AtomicInteger (I)V
this ,Lcom/huawei/opengauss/jdbc/util/SharedTimer; getRefCount ()I get
getTimer ()Ljava/util/Timer; # incrementAndGet %
& java/lang/Thread (
currentThread ()Ljava/lang/Thread; * +
) , getContextClassLoader ()Ljava/lang/ClassLoader; . /
) 0 setContextClassLoader (Ljava/lang/ClassLoader;)V 2 3
) 4 java/util/Timer 6 java/lang/StringBuilder 8
9 PostgreSQL-JDBC-SharedTimer- ; append -(Ljava/lang/String;)Ljava/lang/StringBuilder; = >
9 ? (I)Ljava/lang/StringBuilder; = A
9 B toString ()Ljava/lang/String; D E
9 F (Ljava/lang/String;Z)V
H
7 I java/lang/ClassLoader K java/lang/Throwable M index I
prevContextCL Ljava/lang/ClassLoader; releaseTimer decrementAndGet T
U W >Outstanding references still exist so not closing shared Timer Y !com/huawei/opengauss/jdbc/log/Log [ trace (Ljava/lang/Object;)V ] ^ \ _ CNo outstanding references to shared Timer, will cancel and close it a cancel c
7 d QreleaseTimer() called too many times; there is probably a bug in the calling code f warn h ^ \ i set k
l count java/lang/Class p getName r E
q s $com/huawei/opengauss/jdbc/log/Logger u getLogger 7(Ljava/lang/String;)Lcom/huawei/opengauss/jdbc/log/Log; w x
v y Code LocalVariableTable LineNumberTable
StackMapTable
SourceFile !
B
{ L *? *? *? Y? ? ? | } { 2 *? ? ? | } ! ! " { ? \*? ? K? $? '