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
Nested ClassesModifier and TypeClassDescriptionprotected classDeprecated. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractResourcePool(int start, int max, int inc) Deprecated.protectedAbstractResourcePool(int start, int max, int inc, RunnableQueue rq) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ObjectDeprecated.protected voidcheckinResource(Object resc) Deprecated.protected ObjectDeprecated.protected ObjectcheckoutResource(long timeout) Deprecated.protected voidclose()Deprecated.protected abstract voiddestroyResource(Object resc) Deprecated.protected voidinit()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 voidDeprecated.protected abstract voidrefurbishResource(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
-