|
|||||||||
| 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 java.lang.Object |
acquireResource()
Deprecated. |
protected void |
checkinResource(java.lang.Object resc)
Deprecated. |
protected java.lang.Object |
checkoutResource()
Deprecated. |
protected java.lang.Object |
checkoutResource(long timeout)
Deprecated. |
protected void |
close()
Deprecated. |
protected abstract void |
destroyResource(java.lang.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(java.lang.Object resc)
Deprecated. |
protected abstract void |
refurbishResource(java.lang.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 java.lang.Object acquireResource()
throws java.lang.Exception
java.lang.Exception
protected abstract void refurbishResource(java.lang.Object resc)
throws BrokenObjectException
BrokenObjectException
protected abstract void destroyResource(java.lang.Object resc)
throws java.lang.Exception
java.lang.Exception
protected void init()
throws java.lang.Exception
java.lang.Exception
protected java.lang.Object checkoutResource()
throws BrokenObjectException,
java.lang.InterruptedException,
java.lang.Exception
BrokenObjectException
java.lang.InterruptedException
java.lang.Exception
protected java.lang.Object checkoutResource(long timeout)
throws BrokenObjectException,
java.lang.InterruptedException,
AbstractResourcePool.TimeoutException,
java.lang.Exception
BrokenObjectException
java.lang.InterruptedException
AbstractResourcePool.TimeoutException
java.lang.Exception
protected void checkinResource(java.lang.Object resc)
throws BrokenObjectException
BrokenObjectException
protected void markBad(java.lang.Object resc)
throws java.lang.Exception
java.lang.Exception
protected void close()
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||