public final class FastConnectionPool extends Thread implements BeeConnectionPool, BeeConnectionPoolJmxBean
Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| 构造器和说明 |
|---|
FastConnectionPool() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear(boolean forceCloseUsing) |
void |
clear(boolean forceCloseUsing,
BeeDataSourceConfig config) |
void |
close() |
Connection |
getConnection() |
int |
getIdleSize() |
BeeConnectionPoolMonitorVo |
getPoolMonitorVo() |
int |
getSemaphoreAcquiredSize() |
int |
getSemaphoreWaitingSize() |
int |
getStateCodeOnRelease() |
int |
getTotalSize() |
int |
getTransferWaitingSize() |
int |
getUsingSize() |
XAConnection |
getXAConnection() |
void |
init(BeeDataSourceConfig config)
Method-1.1: pool initialize with configuration
|
boolean |
isClosed() |
boolean |
isValid(cn.beecp.pool.PooledConnection p) |
void |
recycle(cn.beecp.pool.PooledConnection p)
Method-2.6: Connection return to pool after it end use,if exist waiter in pool,
then try to transfer the connection to one waiting borrower
|
void |
run() |
void |
setPrintRuntimeLog(boolean indicator) |
boolean |
tryCatch(cn.beecp.pool.PooledConnection p) |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic void init(BeeDataSourceConfig config) throws SQLException
init 在接口中 BeeConnectionPoolconfig - pool configurationSQLException - configuration check fail or initiated connection create failedpublic final Connection getConnection() throws SQLException
getConnection 在接口中 BeeConnectionPoolSQLExceptionpublic final XAConnection getXAConnection() throws SQLException
getXAConnection 在接口中 BeeConnectionPoolSQLExceptionpublic final void recycle(cn.beecp.pool.PooledConnection p)
p - target connection need releasepublic final int getStateCodeOnRelease()
public final boolean tryCatch(cn.beecp.pool.PooledConnection p)
public void clear(boolean forceCloseUsing)
throws SQLException
clear 在接口中 BeeConnectionPoolSQLExceptionpublic void clear(boolean forceCloseUsing,
BeeDataSourceConfig config)
throws SQLException
clear 在接口中 BeeConnectionPoolSQLExceptionpublic boolean isClosed()
isClosed 在接口中 BeeConnectionPoolpublic void close()
close 在接口中 BeeConnectionPoolpublic void setPrintRuntimeLog(boolean indicator)
setPrintRuntimeLog 在接口中 BeeConnectionPoolsetPrintRuntimeLog 在接口中 BeeConnectionPoolJmxBeanpublic int getTotalSize()
getTotalSize 在接口中 BeeConnectionPoolJmxBeanpublic int getIdleSize()
getIdleSize 在接口中 BeeConnectionPoolJmxBeanpublic int getUsingSize()
getUsingSize 在接口中 BeeConnectionPoolJmxBeanpublic int getSemaphoreWaitingSize()
public int getSemaphoreAcquiredSize()
public int getTransferWaitingSize()
public final boolean isValid(cn.beecp.pool.PooledConnection p)
public BeeConnectionPoolMonitorVo getPoolMonitorVo()
getPoolMonitorVo 在接口中 BeeConnectionPoolCopyright © 2023. All rights reserved.