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, markBad
public 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.SQLException
protected 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.SQLException
public ConnectionBundle checkoutBundle() throws java.sql.SQLException, BrokenObjectException, java.lang.InterruptedException
checkoutBundle
in interface ConnectionBundlePool
java.sql.SQLException
BrokenObjectException
java.lang.InterruptedException
public void checkinBundle(ConnectionBundle bndl) throws BrokenObjectException
checkinBundle
in interface ConnectionBundlePool
BrokenObjectException
public void close() throws java.sql.SQLException
ClosableResource
close
in interface ConnectionBundlePool
close
in interface ClosableResource
close
in class AbstractResourcePool
java.sql.SQLException
protected java.lang.Object acquireResource() throws java.lang.Exception
acquireResource
in class AbstractResourcePool
java.lang.Exception
protected void refurbishResource(java.lang.Object resc) throws BrokenObjectException
AbstractResourcePool
refurbishResource
in class AbstractResourcePool
BrokenObjectException
protected void destroyResource(java.lang.Object resc) throws java.lang.Exception
destroyResource
in class AbstractResourcePool
java.lang.Exception
protected abstract void setConnectionOptions(java.sql.Connection con) throws java.sql.SQLException
java.sql.SQLException