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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionBundlePoolImpl
public ConnectionBundlePoolImpl(java.lang.String jdbcUrl,
java.lang.String username,
java.lang.String pwd,
int start,
int max,
int inc)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
ConnectionBundlePoolImpl
protected ConnectionBundlePoolImpl(int start,
int max,
int inc)
init
protected void init(java.lang.String jdbcUrl,
java.lang.String username,
java.lang.String pwd)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
checkoutBundle
public ConnectionBundle checkoutBundle()
throws java.sql.SQLException,
BrokenObjectException,
java.lang.InterruptedException
- Specified by:
checkoutBundle in interface ConnectionBundlePool
- Throws:
java.sql.SQLException
BrokenObjectException
java.lang.InterruptedException
checkinBundle
public void checkinBundle(ConnectionBundle bndl)
throws BrokenObjectException
- Specified by:
checkinBundle in interface ConnectionBundlePool
- Throws:
BrokenObjectException
close
public void close()
throws java.sql.SQLException
- Description copied from interface:
ClosableResource
- forces the release of any resources that might be
associated with this object.
- Specified by:
close in interface ConnectionBundlePool- Specified by:
close in interface ClosableResource- Overrides:
close in class AbstractResourcePool
- Throws:
java.sql.SQLException
acquireResource
protected java.lang.Object acquireResource()
throws java.lang.Exception
- Specified by:
acquireResource in class AbstractResourcePool
- Throws:
java.lang.Exception
refurbishResource
protected void refurbishResource(java.lang.Object resc)
throws BrokenObjectException
- Description copied from class:
AbstractResourcePool
- Called on checkout!
- Specified by:
refurbishResource in class AbstractResourcePool
- Throws:
BrokenObjectException
destroyResource
protected void destroyResource(java.lang.Object resc)
throws java.lang.Exception
- Specified by:
destroyResource in class AbstractResourcePool
- Throws:
java.lang.Exception
setConnectionOptions
protected abstract void setConnectionOptions(java.sql.Connection con)
throws java.sql.SQLException
- Throws:
java.sql.SQLException