public class ConnectionPool
extends bee.tool.timer.Interval
| 限定符和类型 | 方法和说明 |
|---|---|
Connection |
getConnection()
返回druid数据库连接,连接在10分钟如无释放,系统会自动回收
|
Collection<bee.cloud.engine.db.pool.ConnectionPool.Active> |
getConns() |
int |
getCount() |
String |
getDatabaseType() |
String |
getDiscription() |
String |
getKey() |
Properties |
getProperties() |
Connection |
getStaticConnection()
返回druid数据库连接,需要程序员在用完连接后进行释放,系统不进行回收
|
protected void |
go() |
protected static ConnectionPool |
instance(String key,
Properties properties) |
public String getKey()
public String getDiscription()
public String getDatabaseType()
public Properties getProperties()
protected static ConnectionPool instance(String key, Properties properties)
public Connection getConnection() throws SQLException
SQLException - -public Connection getStaticConnection() throws SQLException
SQLException - -public int getCount()
public Collection<bee.cloud.engine.db.pool.ConnectionPool.Active> getConns()
protected void go()
go 在类中 bee.tool.timer.IntervalCopyright © 2020 Pivotal Software, Inc.. All rights reserved.