资源简介
这是最新的 linux 系统上面使用的 mysql 驱动类文件
代码片段和文件信息
/*
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;
threadRef.setContextClassLoader(null);
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;
}
}
}
相关资源
- php mysql经典留言本源码 代码通俗易懂
- PHP MySQL 物流管理 数据库文件
- PHP MySQL 技术 毕业设计 物流管理系统
- php mysql 在线作业管理系统
- MySql.data.dll +使用说明
- 图书管理系统 PHP MYSQL实现
- [PHP MySQL]图书馆管理系统前后台全部代
- 基于PHP+MYSQL的学生成绩管理系统
- Spring+Struts2+Hibernate人力资源管理系统
- 我自己写php mysql聊天室
- mysql 数据库连接池
- 完整的php mysql js用户注册与登陆
- MySQL数据库用户在线注册系统
- 用Linux命令完成Oracle自动物理备份
- mysql数据库驱动8.0.12版本
- mha4mysql-0.56-0.el6
- mysql_5.6.24_winx64
- MYSQL作业提交作业批改系统.zip
- Maven搭建Spring+Mybatis+MySql
- 成语首尾字用于成语接龙.sql
- MySQL中文手册api帮助文档
- linux_mysql5.1.66x86_64.zip
- Oracle Linux 6.8 x86_64
- oracle 到mysql转换工具
- 数据库原理实验指导书Mysql
- mysql 5.6 绿色精简版 5Mb
- mysql Premium 破解
- 深入浅出MySQL第二版本pdf
- 深入浅出MySQL.pdf
- 深入浅出mysql全文
评论
共有 条评论