public class PoolOperations extends Object
ConnectionFactory and PoolService functions are accessed.
Essentially, these are the operations that allow us to get and restore a JDBC Connection from the pool
as well as to process the SQLExceptions that might have occurred on a taken JDBC Connection.| Constructor and Description |
|---|
PoolOperations(ViburDBCPDataSource dataSource,
ViburObjectFactory connectionFactory,
org.vibur.objectpool.PoolService<ConnHolder> poolService)
Instantiates the PoolOperations facade.
|
| Modifier and Type | Method and Description |
|---|---|
Connection |
getProxyConnection(long timeoutMs) |
void |
restore(ConnHolder connHolder,
boolean valid,
SQLException[] exceptions) |
public PoolOperations(ViburDBCPDataSource dataSource, ViburObjectFactory connectionFactory, org.vibur.objectpool.PoolService<ConnHolder> poolService)
dataSource - the Vibur dataSource on which we will operateconnectionFactory - the Vibur connection factorypoolService - the Vibur pool servicepublic Connection getProxyConnection(long timeoutMs) throws SQLException
SQLExceptionpublic void restore(ConnHolder connHolder, boolean valid, SQLException[] exceptions)
Copyright © 2013-2019 vibur.org. All Rights Reserved.