public class SimpleConnectionPool extends Object implements ConnectionPool
| 修飾子とタイプ | クラスと説明 |
|---|---|
protected class |
SimpleConnectionPool.FreeItem |
class |
SimpleConnectionPool.SynchronizationImpl |
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected Set<ConnectionWrapper> |
activePool |
protected boolean |
allowLocalTx |
static int |
DEFAULT_TRANSACTION_ISOLATION_LEVEL |
protected LjtLinkedList |
freePool |
protected int |
maxPoolSize |
protected long |
maxWait |
protected int |
minPoolSize |
protected boolean |
readOnly |
static String |
readOnly_BINDING |
protected int |
timeout |
protected LjtTimeoutTask |
timeoutTask |
protected int |
transactionIsolationLevel |
static String |
transactionIsolationLevel_BINDING |
protected TransactionManager |
transactionManager |
protected Map<Transaction,ConnectionWrapper> |
txActivePool |
protected long |
validationInterval |
protected String |
validationQuery |
protected XADataSource |
xaDataSource |
| コンストラクタと説明 |
|---|
SimpleConnectionPool() |
public static final String transactionIsolationLevel_BINDING
public static final int DEFAULT_TRANSACTION_ISOLATION_LEVEL
protected XADataSource xaDataSource
protected TransactionManager transactionManager
protected int timeout
protected int maxPoolSize
protected int minPoolSize
protected long maxWait
protected boolean allowLocalTx
protected boolean readOnly
protected int transactionIsolationLevel
protected String validationQuery
protected long validationInterval
protected final Set<ConnectionWrapper> activePool
protected final Map<Transaction,ConnectionWrapper> txActivePool
protected final LjtLinkedList freePool
protected LjtTimeoutTask timeoutTask
protected Set<ConnectionWrapper> createActivePoolSet()
protected Map<Transaction,ConnectionWrapper> createTxActivePoolMap()
protected LjtLinkedList createFreePoolList()
protected LjtTimeoutTarget createTimeoutTarget()
public ConnectionWrapper checkOut() throws SQLException
checkOut インタフェース内 ConnectionPoolSQLExceptionprotected Transaction getTransaction()
protected ConnectionWrapper getConnectionTxActivePool(Transaction tx)
protected ConnectionWrapper checkOutFreePool(Transaction tx)
protected boolean validateConnection(ConnectionWrapper wrapper, long pooledTime)
protected ConnectionWrapper createConnection(Transaction tx) throws SQLException
SQLExceptionprotected ConnectionWrapperImpl createTransactionalConnectionWrapperImpl(XAConnection xaConnection, Connection conn, Transaction tx) throws SQLException
SQLExceptionprotected void setConnectionActivePool(ConnectionWrapper connection)
protected SimpleConnectionPool.SynchronizationImpl createSynchronizationImpl(Transaction tx)
protected void setConnectionTxActivePool(Transaction tx, ConnectionWrapper wrapper)
public void release(ConnectionWrapper connection)
release インタフェース内 ConnectionPoolpublic void checkIn(ConnectionWrapper wrapper)
checkIn インタフェース内 ConnectionPoolprotected void checkInFreePool(ConnectionWrapper wrapper)
protected ConnectionWrapperImpl createInheritedConnectionWrapperImpl(ConnectionWrapper wrapper, Connection pc) throws SQLException
SQLExceptionpublic void checkInTx(Transaction tx)
checkInTx インタフェース内 ConnectionPoolpublic final void close()
close インタフェース内 ConnectionPoolprotected boolean isInternalDebug()
protected void throwConnectionPoolShortFreeException()
throws SQLException
SQLExceptionprotected String buildRomanticExp(Transaction tx, ConnectionWrapper wrapper)
public XADataSource getXADataSource()
public void setXADataSource(XADataSource xaDataSource)
public TransactionManager getTransactionManager()
public void setTransactionManager(TransactionManager transactionManager)
public int getTimeout()
public void setTimeout(int timeout)
public int getMaxPoolSize()
getMaxPoolSize インタフェース内 ConnectionPoolpublic void setMaxPoolSize(int maxPoolSize)
public int getMinPoolSize()
getMinPoolSize インタフェース内 ConnectionPoolpublic void setMinPoolSize(int minPoolSize)
public long getMaxWait()
public void setMaxWait(long maxWait)
public boolean isAllowLocalTx()
public void setAllowLocalTx(boolean allowLocalTx)
public boolean isReadOnly()
public void setReadOnly(boolean readOnly)
public int getTransactionIsolationLevel()
public void setTransactionIsolationLevel(int transactionIsolationLevel)
public String getValidationQuery()
public void setValidationQuery(String validationQuery)
public long getValidationInterval()
public void setValidationInterval(long validationInterval)
public int getActivePoolSize()
getActivePoolSize インタフェース内 ConnectionPoolpublic int getTxActivePoolSize()
getTxActivePoolSize インタフェース内 ConnectionPoolpublic int getFreePoolSize()
getFreePoolSize インタフェース内 ConnectionPoolCopyright © 2015 The DBFlute Project. All rights reserved.