Package com.mchange.v1.db.sql
Class ConnectionBundlePoolImpl
java.lang.Object
com.mchange.v1.util.AbstractResourcePool
com.mchange.v1.db.sql.ConnectionBundlePoolImpl
- All Implemented Interfaces:
ConnectionBundlePool
,ClosableResource
public abstract class ConnectionBundlePoolImpl
extends AbstractResourcePool
implements ConnectionBundlePool
-
Nested Class Summary
Nested classes/interfaces inherited from class com.mchange.v1.util.AbstractResourcePool
AbstractResourcePool.TimeoutException
-
Constructor Summary
ModifierConstructorDescriptionprotected
ConnectionBundlePoolImpl
(int start, int max, int inc) ConnectionBundlePoolImpl
(String jdbcUrl, String username, String pwd, int start, int max, int inc) -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
void
void
close()
forces the release of any resources that might be associated with this object.protected void
destroyResource
(Object resc) protected void
protected void
refurbishResource
(Object resc) Called on checkout!protected abstract void
Methods inherited from class com.mchange.v1.util.AbstractResourcePool
checkinResource, checkoutResource, checkoutResource, init, markBad
-
Constructor Details
-
ConnectionBundlePoolImpl
public ConnectionBundlePoolImpl(String jdbcUrl, String username, String pwd, int start, int max, int inc) throws SQLException - Throws:
SQLException
-
ConnectionBundlePoolImpl
protected ConnectionBundlePoolImpl(int start, int max, int inc)
-
-
Method Details
-
init
- Throws:
SQLException
-
checkoutBundle
public ConnectionBundle checkoutBundle() throws SQLException, BrokenObjectException, InterruptedException- Specified by:
checkoutBundle
in interfaceConnectionBundlePool
- Throws:
SQLException
BrokenObjectException
InterruptedException
-
checkinBundle
- Specified by:
checkinBundle
in interfaceConnectionBundlePool
- Throws:
BrokenObjectException
-
close
Description copied from interface:ClosableResource
forces the release of any resources that might be associated with this object.- Specified by:
close
in interfaceClosableResource
- Specified by:
close
in interfaceConnectionBundlePool
- Overrides:
close
in classAbstractResourcePool
- Throws:
SQLException
-
acquireResource
- Specified by:
acquireResource
in classAbstractResourcePool
- Throws:
Exception
-
refurbishResource
Description copied from class:AbstractResourcePool
Called on checkout!- Specified by:
refurbishResource
in classAbstractResourcePool
- Throws:
BrokenObjectException
-
destroyResource
- Specified by:
destroyResource
in classAbstractResourcePool
- Throws:
Exception
-
setConnectionOptions
- Throws:
SQLException
-