public final class RawConnectionPool extends Object implements BeeConnectionPool, BeeConnectionPoolJmxBean
return raw connections to borrowers directly.
| 构造器和说明 |
|---|
RawConnectionPool() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear(boolean force) |
void |
clear(boolean force,
BeeDataSourceConfig config) |
void |
close()
close pool
|
Connection |
getConnection()
borrow one connection from pool
|
int |
getIdleSize() |
BeeConnectionPoolMonitorVo |
getPoolMonitorVo() |
int |
getSemaphoreAcquiredSize() |
int |
getSemaphoreWaitingSize() |
int |
getTotalSize() |
int |
getTransferWaitingSize() |
int |
getUsingSize() |
XAConnection |
getXAConnection() |
void |
init(BeeDataSourceConfig config)
initialize pool with configuration
|
boolean |
isClosed()
is pool shutdown
|
void |
recycle(cn.beecp.pool.PooledConnection p)
Connection return to pool after it end use,if exist waiter in pool,
then try to transfer the connection to one waiting borrower
|
void |
setPrintRuntimeLog(boolean enabledDebug) |
public void init(BeeDataSourceConfig config) throws SQLException
init 在接口中 BeeConnectionPoolconfig - data source configurationSQLExceptionpublic Connection getConnection() throws SQLException
getConnection 在接口中 BeeConnectionPoolSQLException - if pool is closed or waiting timeout,then throw exceptionpublic XAConnection getXAConnection() throws SQLException
getXAConnection 在接口中 BeeConnectionPoolSQLExceptionpublic void recycle(cn.beecp.pool.PooledConnection p)
p - target connection need releasepublic void close()
close 在接口中 BeeConnectionPoolpublic boolean isClosed()
isClosed 在接口中 BeeConnectionPoolpublic void clear(boolean force)
clear 在接口中 BeeConnectionPoolpublic void clear(boolean force,
BeeDataSourceConfig config)
clear 在接口中 BeeConnectionPoolpublic int getTotalSize()
getTotalSize 在接口中 BeeConnectionPoolJmxBeanpublic int getIdleSize()
getIdleSize 在接口中 BeeConnectionPoolJmxBeanpublic int getUsingSize()
getUsingSize 在接口中 BeeConnectionPoolJmxBeanpublic int getSemaphoreAcquiredSize()
public int getSemaphoreWaitingSize()
public int getTransferWaitingSize()
public void setPrintRuntimeLog(boolean enabledDebug)
setPrintRuntimeLog 在接口中 BeeConnectionPoolsetPrintRuntimeLog 在接口中 BeeConnectionPoolJmxBeanpublic BeeConnectionPoolMonitorVo getPoolMonitorVo()
getPoolMonitorVo 在接口中 BeeConnectionPoolCopyright © 2023. All rights reserved.