public class ConnectionPoolWithSynchronizedValidation<ConnectionType> extends ConnectionPool<ConnectionType>
connections| Constructor and Description |
|---|
ConnectionPoolWithSynchronizedValidation(ConnectionFactory<ConnectionType> connectionFactory,
ConnectionPoolProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
ConnectionType |
borrowConnection()
Borrows a connection from the pool.
|
protected ConnectionType |
recycleConnectionIfPossible() |
protected ConnectionType |
retrieveFirstAvailableConnection() |
availableSize, destroy, destroyPooledConnection, logCurrentPoolSize, onXPooledConnectionTerminated, refresh, toString, totalSizepublic ConnectionPoolWithSynchronizedValidation(ConnectionFactory<ConnectionType> connectionFactory, ConnectionPoolProperties properties) throws ConnectionPoolException
ConnectionPoolExceptionpublic ConnectionType borrowConnection() throws CreateConnectionException, PoolExhaustedException, ConnectionPoolException
ConnectionPoolborrowConnection in class ConnectionPool<ConnectionType>CreateConnectionException - If the pool attempted to grow but failed.PoolExhaustedException - If the pool could not grow because it is exhausted.ConnectionPoolException - Other errors.protected ConnectionType recycleConnectionIfPossible() throws Exception
recycleConnectionIfPossible in class ConnectionPool<ConnectionType>Exceptionprotected ConnectionType retrieveFirstAvailableConnection()
retrieveFirstAvailableConnection in class ConnectionPool<ConnectionType>Copyright © 2023. All rights reserved.