public final class RawConnectionPool extends Object implements ConnectionPool, ConnectionPoolJmxBean
return raw connections to borrowers directly.
| 构造器和说明 |
|---|
RawConnectionPool() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear() |
void |
clear(boolean force) |
void |
close()
close pool
|
Connection |
getConnection()
borrow one connection from pool
|
int |
getIdleSize() |
ConnectionPoolMonitorVo |
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 在接口中 ConnectionPoolconfig - data source configurationSQLExceptionpublic Connection getConnection() throws SQLException
getConnection 在接口中 ConnectionPoolSQLException - if pool is closed or waiting timeout,then throw exceptionpublic XAConnection getXAConnection() throws SQLException
getXAConnection 在接口中 ConnectionPoolSQLExceptionpublic void recycle(cn.beecp.pool.PooledConnection p)
recycle 在接口中 ConnectionPoolp - target connection need releasepublic void close()
close 在接口中 ConnectionPoolpublic boolean isClosed()
isClosed 在接口中 ConnectionPoolpublic void clear()
clear 在接口中 ConnectionPoolpublic void clear(boolean force)
clear 在接口中 ConnectionPoolpublic int getTotalSize()
getTotalSize 在接口中 ConnectionPoolJmxBeanpublic int getIdleSize()
getIdleSize 在接口中 ConnectionPoolJmxBeanpublic int getUsingSize()
getUsingSize 在接口中 ConnectionPoolJmxBeanpublic int getSemaphoreAcquiredSize()
public int getSemaphoreWaitingSize()
getSemaphoreWaitingSize 在接口中 ConnectionPoolJmxBeanpublic int getTransferWaitingSize()
getTransferWaitingSize 在接口中 ConnectionPoolJmxBeanpublic void setPrintRuntimeLog(boolean enabledDebug)
setPrintRuntimeLog 在接口中 ConnectionPoolsetPrintRuntimeLog 在接口中 ConnectionPoolJmxBeanpublic ConnectionPoolMonitorVo getPoolMonitorVo()
getPoolMonitorVo 在接口中 ConnectionPoolCopyright © 2022. All rights reserved.