| 程序包 | 说明 |
|---|---|
| org.dromara.hutool.db.ds.pooled |
Hutool对连接池的简单实现
|
| 限定符和类型 | 方法和说明 |
|---|---|
PooledConnection |
PooledDataSource.getConnection(long wait)
获取连接对象
|
PooledConnection |
PooledDataSource.newConnection()
创建新连接
|
protected PooledConnection |
PooledConnection.open()
打开连接
|
protected PooledConnection |
PooledConnection.release()
释放连接
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected boolean |
PooledDataSource.free(PooledConnection conn)
释放连接,连接会被返回给连接池
|
Copyright © 2023. All rights reserved.