Package com.mchange.v1.util
Class AbstractResourcePool
java.lang.Object
com.mchange.v1.util.AbstractResourcePool
- Direct Known Subclasses:
ConnectionBundlePoolImpl
Deprecated.
use com.mchange.v1.resourcepool.AbstractResourcePool
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
Deprecated. -
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractResourcePool
(int start, int max, int inc) Deprecated.protected
AbstractResourcePool
(int start, int max, int inc, RunnableQueue rq) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Object
Deprecated.protected void
checkinResource
(Object resc) Deprecated.protected Object
Deprecated.protected Object
checkoutResource
(long timeout) Deprecated.protected void
close()
Deprecated.protected abstract void
destroyResource
(Object resc) Deprecated.protected void
init()
Deprecated.We defer actual acquisition of the resources to a method outside the constructor because subclasses may need to do prep work in their own constructor before resource acquisition can occur.protected void
Deprecated.protected abstract void
refurbishResource
(Object resc) Deprecated.Called on checkout!
-
Constructor Details
-
AbstractResourcePool
protected AbstractResourcePool(int start, int max, int inc) Deprecated. -
AbstractResourcePool
Deprecated.
-
-
Method Details
-
acquireResource
Deprecated.- Throws:
Exception
-
refurbishResource
Deprecated.Called on checkout!- Throws:
BrokenObjectException
-
destroyResource
Deprecated.- Throws:
Exception
-
init
Deprecated.We defer actual acquisition of the resources to a method outside the constructor because subclasses may need to do prep work in their own constructor before resource acquisition can occur. This method will usually be called at the end of a subclasses constructor.- Throws:
Exception
-
checkoutResource
Deprecated. -
checkoutResource
protected Object checkoutResource(long timeout) throws BrokenObjectException, InterruptedException, AbstractResourcePool.TimeoutException, Exception Deprecated. -
checkinResource
Deprecated.- Throws:
BrokenObjectException
-
markBad
Deprecated.- Throws:
Exception
-
close
Deprecated.- Throws:
Exception
-