public abstract class ConnectionBundlePoolImpl extends AbstractResourcePool implements ConnectionBundlePool
AbstractResourcePool.TimeoutException| Modifier | Constructor and Description |
|---|---|
protected |
ConnectionBundlePoolImpl(int start,
int max,
int inc) |
|
ConnectionBundlePoolImpl(java.lang.String jdbcUrl,
java.lang.String username,
java.lang.String pwd,
int start,
int max,
int inc) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.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(java.lang.Object resc) |
protected void |
init(java.lang.String jdbcUrl,
java.lang.String username,
java.lang.String pwd) |
protected void |
refurbishResource(java.lang.Object resc)
Called on checkout!
|
protected abstract void |
setConnectionOptions(java.sql.Connection con) |
checkinResource, checkoutResource, checkoutResource, init, markBadpublic ConnectionBundlePoolImpl(java.lang.String jdbcUrl,
java.lang.String username,
java.lang.String pwd,
int start,
int max,
int inc)
throws java.sql.SQLException
java.sql.SQLExceptionprotected ConnectionBundlePoolImpl(int start,
int max,
int inc)
protected void init(java.lang.String jdbcUrl,
java.lang.String username,
java.lang.String pwd)
throws java.sql.SQLException
java.sql.SQLExceptionpublic ConnectionBundle checkoutBundle() throws java.sql.SQLException, BrokenObjectException, java.lang.InterruptedException
checkoutBundle in interface ConnectionBundlePooljava.sql.SQLExceptionBrokenObjectExceptionjava.lang.InterruptedExceptionpublic void checkinBundle(ConnectionBundle bndl) throws BrokenObjectException
checkinBundle in interface ConnectionBundlePoolBrokenObjectExceptionpublic void close()
throws java.sql.SQLException
ClosableResourceclose in interface ConnectionBundlePoolclose in interface ClosableResourceclose in class AbstractResourcePooljava.sql.SQLExceptionprotected java.lang.Object acquireResource()
throws java.lang.Exception
acquireResource in class AbstractResourcePooljava.lang.Exceptionprotected void refurbishResource(java.lang.Object resc)
throws BrokenObjectException
AbstractResourcePoolrefurbishResource in class AbstractResourcePoolBrokenObjectExceptionprotected void destroyResource(java.lang.Object resc)
throws java.lang.Exception
destroyResource in class AbstractResourcePooljava.lang.Exceptionprotected abstract void setConnectionOptions(java.sql.Connection con)
throws java.sql.SQLException
java.sql.SQLException