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
ConstructorsModifierConstructorDescriptionprotectedConnectionBundlePoolImpl(int start, int max, int inc) ConnectionBundlePoolImpl(String jdbcUrl, String username, String pwd, int start, int max, int inc) -
Method Summary
Modifier and TypeMethodDescriptionprotected Objectvoidvoidclose()forces the release of any resources that might be associated with this object.protected voiddestroyResource(Object resc) protected voidprotected voidrefurbishResource(Object resc) Called on checkout!protected abstract voidMethods 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:
checkoutBundlein interfaceConnectionBundlePool- Throws:
SQLExceptionBrokenObjectExceptionInterruptedException
-
checkinBundle
- Specified by:
checkinBundlein interfaceConnectionBundlePool- Throws:
BrokenObjectException
-
close
Description copied from interface:ClosableResourceforces the release of any resources that might be associated with this object.- Specified by:
closein interfaceClosableResource- Specified by:
closein interfaceConnectionBundlePool- Overrides:
closein classAbstractResourcePool- Throws:
SQLException
-
acquireResource
- Specified by:
acquireResourcein classAbstractResourcePool- Throws:
Exception
-
refurbishResource
Description copied from class:AbstractResourcePoolCalled on checkout!- Specified by:
refurbishResourcein classAbstractResourcePool- Throws:
BrokenObjectException
-
destroyResource
- Specified by:
destroyResourcein classAbstractResourcePool- Throws:
Exception
-
setConnectionOptions
- Throws:
SQLException
-