资源简介
java 连接 mysql 所需jar包和zip实现源码。java必备jar包和源码,收藏不迷路

代码片段和文件信息
/*
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;
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2118 2013-03-11 07:20 src\com\mysql\jdbc\AbandonedConnectionCleanupThread.java
文件 2359 2013-03-11 07:20 src\com\mysql\jdbc\AssertionFailedException.java
文件 2401 2013-03-11 07:20 src\com\mysql\jdbc\authentication\MysqlClearPasswordPlugin.java
文件 3219 2013-03-11 07:20 src\com\mysql\jdbc\authentication\MysqlNativePasswordPlugin.java
文件 2703 2013-03-11 07:20 src\com\mysql\jdbc\authentication\MysqlOldPasswordPlugin.java
文件 2392 2013-03-11 07:20 src\com\mysql\jdbc\authentication\Sha256PasswordPlugin.java
文件 4713 2013-03-11 07:20 src\com\mysql\jdbc\AuthenticationPlugin.java
文件 3580 2013-03-11 07:20 src\com\mysql\jdbc\BalanceStrategy.java
文件 3466 2013-03-11 07:20 src\com\mysql\jdbc\BestResponseTimeBalanceStrategy.java
文件 12870 2013-03-11 07:20 src\com\mysql\jdbc\Blob.java
文件 18731 2013-03-11 07:20 src\com\mysql\jdbc\BlobFromLocator.java
文件 17755 2013-03-11 07:20 src\com\mysql\jdbc\Buffer.java
文件 20866 2013-03-11 07:20 src\com\mysql\jdbc\BufferRow.java
文件 8491 2013-03-11 07:20 src\com\mysql\jdbc\ByteArrayRow.java
文件 1314 2013-03-11 07:20 src\com\mysql\jdbc\CacheAdapter.java
文件 1400 2013-03-11 07:20 src\com\mysql\jdbc\CacheAdapterFactory.java
文件 1923 2013-03-11 07:20 src\com\mysql\jdbc\CachedResultSetme
文件 78086 2013-03-11 07:20 src\com\mysql\jdbc\CallableStatement.java
文件 51750 2013-03-11 07:20 src\com\mysql\jdbc\CharsetMapping.java
文件 2477 2013-03-11 07:20 src\com\mysql\jdbc\Charsets.properties
文件 8542 2013-03-11 07:20 src\com\mysql\jdbc\Clob.java
文件 3369 2013-03-11 07:20 src\com\mysql\jdbc\CommunicationsException.java
文件 8201 2013-03-11 07:20 src\com\mysql\jdbc\CompressedInputStream.java
文件 504 2013-03-11 07:20 src\com\mysql\jdbc\configs\3-0-Compat.properties
文件 114 2013-03-11 07:20 src\com\mysql\jdbc\configs\5-0-Compat.properties
文件 100 2013-03-11 07:20 src\com\mysql\jdbc\configs\clusterba
文件 478 2013-03-11 07:20 src\com\mysql\jdbc\configs\coldFusion.properties
文件 146 2013-03-11 07:20 src\com\mysql\jdbc\configs\fullDebug.properties
文件 864 2013-03-11 07:20 src\com\mysql\jdbc\configs\maxPerformance.properties
文件 248 2013-03-11 07:20 src\com\mysql\jdbc\configs\solarisMaxPerformance.properties
............此处省略277个文件信息
相关资源
- 微博系统(Java源码,servlet+jsp),适
- java串口通信全套完整代码-导入eclip
- 美食天下项目Android版源码和Web版源码
- jsonarray所必需的6个jar包.rar
- 三角网构TIN生成算法,Java语言实现
- java代码编写将excel数据导入到mysql数据
- Java写的cmm词法分析器源代码及javacc学
- JAVA JSP公司财务管理系统 源代码 论文
- JSP+MYSQL旅行社管理信息系统
- 推荐算法的JAVA实现
- 基于Java的酒店管理系统源码(毕业设
- java-图片识别 图片比较
- android毕业设计
- java23种设计模式+23个实例demo
- u-blox_Android_GNSS_Driver_v3.10驱动源码+中
- java Socket发送/接受报文
- JAVA828436
- java界面美化 提供多套皮肤直接使用
- 在线聊天系统(java代码)
- 基于Java的图书管理系统807185
- java中实现将页面数据导入Excel中
- java 企业销售管理系统
- java做的聊天系统(包括正规课程设计
- Java编写的qq聊天室
- mysql jsp网站源码下载
- 商店商品管理系统 JAVA写的 有界面
- JAVA开发聊天室程序
- 在linux系统下用java执行系统命令实例
- java期末考试试题两套(答案) 选择(
- JAVA3D编程示例(建模、交互)
评论
共有 条评论