Deprecated
use com.mchange.v1.resourcepool.AbstractResourcePool
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | |
| protected class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv boolean | |
| private static final boolean | |
| pack-priv int | |
| pack-priv boolean | |
| pack-priv Set | |
| pack-priv int | |
| pack-priv int | |
| pack-priv RunnableQueue | rq
Deprecated
as a consequence of
RunnableQueue being deprecated.
|
| private static RunnableQueue | sharedQueue
Deprecated
as a consequence of
RunnableQueue being deprecated.
|
| pack-priv int | |
| private static final boolean | |
| pack-priv List |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | AbstractResourcePool(int start, int max, int inc, RunnableQueue rq)
Deprecated
as a consequence of
RunnableQueue being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| protected abstract Object | |
| private void | |
| private void | |
| protected synchronized void | |
| protected Object | |
| protected synchronized Object | |
| protected synchronized void | |
| protected abstract void | |
| private void | |
| protected synchronized void | init()
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 synchronized void | |
| private void | |
| protected abstract void | |
| private void | |
| private void | |
| private synchronized void |
| acq_attempt_delay | back to summary |
|---|---|
| pack-priv int acq_attempt_delay | |
| broken | back to summary |
|---|---|
| pack-priv boolean broken | |
| DEBUG | back to summary |
|---|---|
| private static final boolean DEBUG | |
| inc | back to summary |
|---|---|
| pack-priv int inc | |
| initted | back to summary |
|---|---|
| pack-priv boolean initted | |
| managed | back to summary |
|---|---|
| pack-priv Set<E> managed | |
| max | back to summary |
|---|---|
| pack-priv int max | |
| num_acq_attempts | back to summary |
|---|---|
| pack-priv int num_acq_attempts | |
| rq | back to summary |
|---|---|
| pack-priv RunnableQueue rq
Deprecated as a consequence of | |
| sharedQueue | back to summary |
|---|---|
| private static RunnableQueue sharedQueue
Deprecated as a consequence of | |
| start | back to summary |
|---|---|
| pack-priv int start | |
| TRACE | back to summary |
|---|---|
| private static final boolean TRACE | |
| unused | back to summary |
|---|---|
| pack-priv List<E> unused | |
| AbstractResourcePool | back to summary |
|---|---|
| protected AbstractResourcePool(int start, int max, int inc) | |
| AbstractResourcePool | back to summary |
|---|---|
| protected AbstractResourcePool(int start, int max, int inc, RunnableQueue rq)
Deprecated as a consequence of | |
| acquireMore | back to summary |
|---|---|
| private void acquireMore() throws Exception | |
| acquireResource | back to summary |
|---|---|
| protected abstract Object acquireResource() throws Exception | |
| assimilateResource | back to summary |
|---|---|
| private void assimilateResource() throws Exception | |
| awaitAvailable | back to summary |
|---|---|
| private void awaitAvailable(long timeout) throws InterruptedException, TimeoutException | |
| checkinResource | back to summary |
|---|---|
| protected synchronized void checkinResource(Object resc) throws BrokenObjectException | |
| checkoutResource | back to summary |
|---|---|
| protected Object checkoutResource() throws BrokenObjectException, InterruptedException, Exception | |
| checkoutResource | back to summary |
|---|---|
| protected synchronized Object checkoutResource(long timeout) throws BrokenObjectException, InterruptedException, TimeoutException, Exception | |
| close | back to summary |
|---|---|
| protected synchronized void close() throws Exception | |
| destroyResource | back to summary |
|---|---|
| protected abstract void destroyResource(Object resc) throws Exception | |
| ensureNotBroken | back to summary |
|---|---|
| private void ensureNotBroken() throws BrokenObjectException | |
| init | back to summary |
|---|---|
| protected synchronized void init() throws Exception 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. | |
| markBad | back to summary |
|---|---|
| protected synchronized void markBad(Object resc) throws Exception | |
| postAcquireMore | back to summary |
|---|---|
| private void postAcquireMore() throws InterruptedException | |
| refurbishResource | back to summary |
|---|---|
| protected abstract void refurbishResource(Object resc) throws BrokenObjectException Called on checkout! | |
| removeResource | back to summary |
|---|---|
| private void removeResource(Object resc) throws Exception | |
| trace | back to summary |
|---|---|
| private void trace() | |
| unexpectedBreak | back to summary |
|---|---|
| private synchronized void unexpectedBreak() | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| success | back to summary |
|---|---|
| pack-priv boolean success | |
| AcquireTask | back to summary |
|---|---|
| pack-priv AcquireTask() | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation. | |
| Access | Constructor and Description |
|---|---|
| protected |
| TimeoutException | back to summary |
|---|---|
| protected TimeoutException() | |