mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
C3P0兼容
git-svn-id: http://code.alibabatech.com/svn/druid/trunk@665 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
@@ -1,7 +1,15 @@
|
||||
package com.alibaba.druid.pool;
|
||||
|
||||
import java.util.Properties;
|
||||
|
||||
public interface DruidDataSourceC3P0AdapterMBean {
|
||||
|
||||
String getDriverClass();
|
||||
|
||||
String getJdbcUrl();
|
||||
|
||||
Properties getProperties();
|
||||
|
||||
String getUser();
|
||||
|
||||
int getCheckoutTimeout();
|
||||
@@ -23,13 +31,13 @@ public interface DruidDataSourceC3P0AdapterMBean {
|
||||
boolean isTestConnectionOnCheckin();
|
||||
|
||||
String getPreferredTestQuery();
|
||||
|
||||
|
||||
int getNumIdleConnections();
|
||||
|
||||
|
||||
int getNumConnections();
|
||||
|
||||
|
||||
String getDataSourceName();
|
||||
|
||||
|
||||
int getNumBusyConnections();
|
||||
|
||||
// //////////
|
||||
@@ -43,6 +51,6 @@ public interface DruidDataSourceC3P0AdapterMBean {
|
||||
int getWaitThreadCount();
|
||||
|
||||
int getLockQueueLength();
|
||||
|
||||
|
||||
void close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user