public final class FastConnectionPool extends Thread implements ConnectionPool, ConnectionPoolJmxBean
Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| 构造器和说明 |
|---|
FastConnectionPool() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear() |
void |
clear(boolean force) |
void |
close() |
Connection |
getConnection() |
int |
getIdleSize() |
ConnectionPoolMonitorVo |
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 在接口中 ConnectionPoolconfig - pool configurationSQLException - configuration check fail or initiated connection create failedpublic final Connection getConnection() throws SQLException
getConnection 在接口中 ConnectionPoolSQLExceptionpublic final XAConnection getXAConnection() throws SQLException
getXAConnection 在接口中 ConnectionPoolSQLExceptionpublic final void recycle(cn.beecp.pool.PooledConnection p)
recycle 在接口中 ConnectionPoolp - target connection need releasepublic final int getStateCodeOnRelease()
public final boolean tryCatch(cn.beecp.pool.PooledConnection p)
public void clear()
clear 在接口中 ConnectionPoolpublic void clear(boolean force)
clear 在接口中 ConnectionPoolpublic boolean isClosed()
isClosed 在接口中 ConnectionPoolpublic void close()
close 在接口中 ConnectionPoolpublic void setPrintRuntimeLog(boolean indicator)
setPrintRuntimeLog 在接口中 ConnectionPoolsetPrintRuntimeLog 在接口中 ConnectionPoolJmxBeanpublic int getTotalSize()
getTotalSize 在接口中 ConnectionPoolJmxBeanpublic int getIdleSize()
getIdleSize 在接口中 ConnectionPoolJmxBeanpublic int getUsingSize()
getUsingSize 在接口中 ConnectionPoolJmxBeanpublic int getSemaphoreWaitingSize()
getSemaphoreWaitingSize 在接口中 ConnectionPoolJmxBeanpublic int getSemaphoreAcquiredSize()
public int getTransferWaitingSize()
getTransferWaitingSize 在接口中 ConnectionPoolJmxBeanpublic final boolean isValid(cn.beecp.pool.PooledConnection p)
public ConnectionPoolMonitorVo getPoolMonitorVo()
getPoolMonitorVo 在接口中 ConnectionPoolCopyright © 2022. All rights reserved.