public class ConnectionPoolWithSynchronizedValidation extends ConnectionPool
connections| Constructor and Description |
|---|
ConnectionPoolWithSynchronizedValidation(ConnectionFactory connectionFactory,
ConnectionPoolProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
Reapable |
borrowConnection()
Borrows a connection from the pool.
|
assertNotDestroyed, availableSize, destroy, destroyPooledConnection, findExistingOpenConnectionForCallingThread, findOrWaitForAnAvailableConnection, logCurrentPoolSize, onXPooledConnectionTerminated, reapPool, recycleConnectionIfPossible, refresh, retrieveFirstAvailableConnection, toString, totalSizepublic ConnectionPoolWithSynchronizedValidation(ConnectionFactory connectionFactory, ConnectionPoolProperties properties) throws ConnectionPoolException
ConnectionPoolExceptionpublic Reapable borrowConnection() throws CreateConnectionException, PoolExhaustedException, ConnectionPoolException
ConnectionPoolborrowConnection in class ConnectionPoolCreateConnectionException - If the pool attempted to grow but failed.PoolExhaustedException - If the pool could not grow because it is exhausted.ConnectionPoolException - Other errors.Copyright © 2018. All Rights Reserved.