public abstract class ConnectionBundlePoolImpl extends AbstractResourcePool implements ConnectionBundlePool
AbstractResourcePool.TimeoutException| Modifier | Constructor and Description |
|---|---|
protected |
ConnectionBundlePoolImpl(int start,
int max,
int inc) |
|
ConnectionBundlePoolImpl(String jdbcUrl,
String username,
String pwd,
int start,
int max,
int inc) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
acquireResource() |
void |
checkinBundle(ConnectionBundle bndl) |
ConnectionBundle |
checkoutBundle() |
void |
close()
forces the release of any resources that might be
associated with this object.
|
protected void |
destroyResource(Object resc) |
protected void |
init(String jdbcUrl,
String username,
String pwd) |
protected void |
refurbishResource(Object resc)
Called on checkout!
|
protected abstract void |
setConnectionOptions(Connection con) |
checkinResource, checkoutResource, checkoutResource, init, markBadpublic ConnectionBundlePoolImpl(String jdbcUrl, String username, String pwd, int start, int max, int inc) throws SQLException
SQLExceptionprotected ConnectionBundlePoolImpl(int start,
int max,
int inc)
protected void init(String jdbcUrl, String username, String pwd) throws SQLException
SQLExceptionpublic ConnectionBundle checkoutBundle() throws SQLException, BrokenObjectException, InterruptedException
checkoutBundle in interface ConnectionBundlePoolSQLExceptionBrokenObjectExceptionInterruptedExceptionpublic void checkinBundle(ConnectionBundle bndl) throws BrokenObjectException
checkinBundle in interface ConnectionBundlePoolBrokenObjectExceptionpublic void close()
throws SQLException
ClosableResourceclose in interface ConnectionBundlePoolclose in interface ClosableResourceclose in class AbstractResourcePoolSQLExceptionprotected Object acquireResource() throws Exception
acquireResource in class AbstractResourcePoolExceptionprotected void refurbishResource(Object resc) throws BrokenObjectException
AbstractResourcePoolrefurbishResource in class AbstractResourcePoolBrokenObjectExceptionprotected void destroyResource(Object resc) throws Exception
destroyResource in class AbstractResourcePoolExceptionprotected abstract void setConnectionOptions(Connection con) throws SQLException
SQLException