mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
change pool create & destory thread name
This commit is contained in:
@@ -486,12 +486,14 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
|
||||
}
|
||||
|
||||
private void createAndStartDestroyThread() {
|
||||
destoryConnectionThread = new DestroyConnectionThread("Druid-ConnectionPool-Destory");
|
||||
String threadName = "Druid-ConnectionPool-Destory-" + System.identityHashCode(this);
|
||||
destoryConnectionThread = new DestroyConnectionThread(threadName);
|
||||
destoryConnectionThread.start();
|
||||
}
|
||||
|
||||
protected void createAndStartCreatorThread() {
|
||||
createConnectionThread = new CreateConnectionThread("Druid-ConnectionPool-Create");
|
||||
String threadName = "Druid-ConnectionPool-Create-" + System.identityHashCode(this);
|
||||
createConnectionThread = new CreateConnectionThread(threadName);
|
||||
createConnectionThread.start();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user