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, markBad
public ConnectionBundlePoolImpl(String jdbcUrl, String username, String pwd, int start, int max, int inc) throws SQLException
SQLException
protected ConnectionBundlePoolImpl(int start, int max, int inc)
protected void init(String jdbcUrl, String username, String pwd) throws SQLException
SQLException
public ConnectionBundle checkoutBundle() throws SQLException, BrokenObjectException, InterruptedException
checkoutBundle
in interface ConnectionBundlePool
SQLException
BrokenObjectException
InterruptedException
public void checkinBundle(ConnectionBundle bndl) throws BrokenObjectException
checkinBundle
in interface ConnectionBundlePool
BrokenObjectException
public void close() throws SQLException
ClosableResource
close
in interface ConnectionBundlePool
close
in interface ClosableResource
close
in class AbstractResourcePool
SQLException
protected Object acquireResource() throws Exception
acquireResource
in class AbstractResourcePool
Exception
protected void refurbishResource(Object resc) throws BrokenObjectException
AbstractResourcePool
refurbishResource
in class AbstractResourcePool
BrokenObjectException
protected void destroyResource(Object resc) throws Exception
destroyResource
in class AbstractResourcePool
Exception
protected abstract void setConnectionOptions(Connection con) throws SQLException
SQLException