资源简介
MySQL java JDBC驱动5.1.25
代码片段和文件信息
/*
Copyright (c) 2013 Oracle and/or its affiliates. All rights reserved.
The MySQL Connector/J is licensed under the terms of the GPLv2
like most MySQL Connectors.
There are special exceptions to the terms and conditions of the GPLv2 as it is applied to
this software see the FLOSS License Exception
.
This program is free software; you can redistribute it and/or modify it under the terms
of the GNU General Public License as published by the Free Software Foundation; version 2
of the License.
This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this
program; if not write to the Free Software Foundation Inc. 51 Franklin St Fifth
Floor Boston MA 02110-1301 USA
*/
package com.mysql.jdbc;
import java.lang.ref.Reference;
import com.mysql.jdbc.NonRegisteringDriver.ConnectionPhantomReference;
public class AbandonedConnectionCleanupThread extends Thread {
private static boolean running = true;
private static Thread threadRef = null;
public AbandonedConnectionCleanupThread() {
super(“Abandoned connection cleanup thread“);
}
public void run() {
threadRef = this;
while (running) {
try {
Reference extends ConnectionImpl> ref = NonRegisteringDriver.refQueue.remove(100);
if (ref != null) {
try {
((ConnectionPhantomReference) ref).cleanup();
} finally {
NonRegisteringDriver.connectionPhantomRefs.remove(ref);
}
}
} catch (Exception ex) {
// no where to really log this if we‘re static
}
}
}
public static void shutdown() throws InterruptedException {
running = false;
if (threadRef != null) {
threadRef.interrupt();
threadRef.join();
threadRef = null;
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2013-04-17 14:03 mysql-connector-java-5.1.25\
目录 0 2013-04-17 14:03 mysql-connector-java-5.1.25\docs\
目录 0 2013-04-17 14:03 mysql-connector-java-5.1.25\src\
目录 0 2013-04-17 14:03 mysql-connector-java-5.1.25\src\com\
目录 0 2013-04-17 14:03 mysql-connector-java-5.1.25\src\com\mysql\
目录 0 2013-04-17 14:03 mysql-connector-java-5.1.25\src\com\mysql\jdbc\
目录 0 2013-04-17 14:03 mysql-connector-java-5.1.25\src\com\mysql\jdbc\authentication\
目录 0 2013-04-17 14:03 mysql-connector-java-5.1.25\src\com\mysql\jdbc\configs\
目录 0 2013-04-17 14:03 mysql-connector-java-5.1.25\src\com\mysql\jdbc\exceptions\
目录 0 2013-04-17 14:03 mysql-connector-java-5.1.25\src\com\mysql\jdbc\exceptions\jdbc4\
目录 0 2013-04-17 14:03 mysql-connector-java-5.1.25\src\com\mysql\jdbc\integration\
目录 0 2013-04-17 14:03 mysql-connector-java-5.1.25\src\com\mysql\jdbc\integration\c3p0\
目录 0 2013-04-17 14:03 mysql-connector-java-5.1.25\src\com\mysql\jdbc\integration\jboss\
目录 0 2013-04-17 14:03 mysql-connector-java-5.1.25\src\com\mysql\jdbc\interceptors\
目录 0 2013-04-17 14:03 mysql-connector-java-5.1.25\src\com\mysql\jdbc\jdbc2\
目录 0 2013-04-17 14:03 mysql-connector-java-5.1.25\src\com\mysql\jdbc\jdbc2\optional\
目录 0 2013-04-17 14:03 mysql-connector-java-5.1.25\src\com\mysql\jdbc\jmx\
目录 0 2013-04-17 14:03 mysql-connector-java-5.1.25\src\com\mysql\jdbc\log\
目录 0 2013-04-17 14:03 mysql-connector-java-5.1.25\src\com\mysql\jdbc\profiler\
目录 0 2013-04-17 14:03 mysql-connector-java-5.1.25\src\com\mysql\jdbc\trace\
目录 0 2013-04-17 14:03 mysql-connector-java-5.1.25\src\com\mysql\jdbc\util\
目录 0 2013-04-17 14:03 mysql-connector-java-5.1.25\src\com\mysql\jdbc\webapp\
目录 0 2013-04-17 14:03 mysql-connector-java-5.1.25\src\doc\
目录 0 2013-04-17 14:03 mysql-connector-java-5.1.25\src\doc\sources\
目录 0 2013-04-17 14:03 mysql-connector-java-5.1.25\src\lib\
目录 0 2013-04-17 14:03 mysql-connector-java-5.1.25\src\org\
目录 0 2013-04-17 14:03 mysql-connector-java-5.1.25\src\org\gjt\
目录 0 2013-04-17 14:03 mysql-connector-java-5.1.25\src\org\gjt\mm\
目录 0 2013-04-17 14:03 mysql-connector-java-5.1.25\src\org\gjt\mm\mysql\
目录 0 2013-04-17 14:03 mysql-connector-java-5.1.25\src\testsuite\
目录 0 2013-04-17 14:03 mysql-connector-java-5.1.25\src\testsuite\perf\
............此处省略283个文件信息
相关资源
- 手机放音乐驱动Arduino灯光跳Disco
- 基于java的简单BBS论坛
- SQLServer 2000的JDBC驱动程序
- JavaWeb网上订餐系统项目
- java+mysql做的学生成绩管理系统
- Linux驱动开发 file_operations ioctl read
- 一个很好的论坛系统jsp+mysql
- JSP+MYSQL+Tomcat网上书店完整源码
- java+mysql超市管理系统
- 基于JSP和mysql的火车票售票系统
- 基于Java、mysql的OA办公系统课设或者毕
- Jsp连接sqlserver2008 jdbc驱动
- javaee mysql 的blog源码,带数据库和源代
- 完美实现图书管理系统,java语言+my
- JSP+MYSQL的BBS
- android_usb_windows.zip
- mysql-connector-java-5.1.38.tar.gz
-
msba
se.jarmssqlserver.jarmsutil.jarmysql-co - 基于java的BBS论坛系统源码+数据库文件
- JSP+MySQL 在线考试系统源码
- JSP+MYSQL小说网站(毕业设计)
- java图书馆管理系统连接mysql
- Android开源无线点菜系统 含源码Mysql数
- 基于JSP和MySQL的通讯录管理系统
- 心理测评系统jsp+mysql有论文的
- 基于JAVAWEB的图书借阅系统
- db2驱动db2jcc-1.4.2.jar+db2jcc_license_cu-1.
- java+ mysql仓库管理系统
- android 通过WampServer集成环境通过php+
- java课程设计:日历记事本。
评论
共有 条评论