|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mchange.v1.util.AbstractResourcePool
public abstract class AbstractResourcePool
Nested Class Summary | |
---|---|
protected class |
AbstractResourcePool.TimeoutException
Deprecated. |
Constructor Summary | |
---|---|
protected |
AbstractResourcePool(int start,
int max,
int inc)
Deprecated. |
protected |
AbstractResourcePool(int start,
int max,
int inc,
RunnableQueue rq)
Deprecated. |
Method Summary | |
---|---|
protected abstract Object |
acquireResource()
Deprecated. |
protected void |
checkinResource(Object resc)
Deprecated. |
protected Object |
checkoutResource()
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 |
markBad(Object resc)
Deprecated. |
protected abstract void |
refurbishResource(Object resc)
Deprecated. Called on checkout! |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractResourcePool(int start, int max, int inc)
protected AbstractResourcePool(int start, int max, int inc, RunnableQueue rq)
Method Detail |
---|
protected abstract Object acquireResource() throws Exception
Exception
protected abstract void refurbishResource(Object resc) throws BrokenObjectException
BrokenObjectException
protected abstract void destroyResource(Object resc) throws Exception
Exception
protected void init() throws Exception
Exception
protected Object checkoutResource() throws BrokenObjectException, InterruptedException, Exception
BrokenObjectException
InterruptedException
Exception
protected Object checkoutResource(long timeout) throws BrokenObjectException, InterruptedException, AbstractResourcePool.TimeoutException, Exception
BrokenObjectException
InterruptedException
AbstractResourcePool.TimeoutException
Exception
protected void checkinResource(Object resc) throws BrokenObjectException
BrokenObjectException
protected void markBad(Object resc) throws Exception
Exception
protected void close() throws Exception
Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |