BoneCP源码——BoneCP中使用的多线程
//@Overridepublic void run() {try {this.connectionHandle.setThreadWatch(Thread.currentThread());// wait for the thread we're monitoring to die off.this.threadToMonitor.join(this.closeConnectionWatchTimeout);if (!this.connectionHandle.isClosed() && this.threadToMonitor.equals(this.connectionHandle.getThreadUsingConnection())){logger.error(this.stackTrace);}} catch (Exception e) {// just kill off this threadif (this.connectionHandle != null){ // safetythis.connectionHandle.setThreadWatch(null);}} }?
?