public interface ResourcePool
extends com.mchange.v1.util.ClosableResource
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ResourcePool.Manager |
| Modifier and Type | Field and Description |
|---|---|
static int |
KNOWN_AND_AVAILABLE |
static int |
KNOWN_AND_CHECKED_OUT |
static int |
UNKNOWN_OR_PURGED |
| Modifier and Type | Method and Description |
|---|---|
void |
checkinAll() |
void |
checkinResource(java.lang.Object resc) |
java.lang.Object |
checkoutResource() |
java.lang.Object |
checkoutResource(long timeout) |
void |
close() |
void |
close(boolean close_checked_out_resources) |
int |
getAvailableCount() |
int |
getAwaitingCheckinCount() |
int |
getAwaitingCheckinNotExcludedCount() |
long |
getEffectiveExpirationEnforcementDelay() |
int |
getExcludedCount() |
java.lang.Throwable |
getLastAcquisitionFailure() |
java.lang.Throwable |
getLastCheckinFailure() |
java.lang.Throwable |
getLastCheckoutFailure() |
java.lang.Throwable |
getLastIdleCheckFailure() |
java.lang.Throwable |
getLastResourceTestFailure() |
int |
getMaxPoolSize() |
int |
getMinPoolSize() |
int |
getNumCheckoutWaiters() |
long |
getNumFailedCheckins() |
long |
getNumFailedCheckouts() |
long |
getNumFailedIdleTests() |
int |
getPoolSize() |
long |
getStartTime() |
long |
getUpTime() |
void |
markBroken(java.lang.Object resc)
Marks a resource as broken.
|
void |
resetPool()
Discards all resources managed by the pool
and reacquires new resources to populate the
pool.
|
void |
setPoolSize(int size) |
int |
statusInPool(java.lang.Object resc) |
static final int KNOWN_AND_AVAILABLE
static final int KNOWN_AND_CHECKED_OUT
static final int UNKNOWN_OR_PURGED
java.lang.Object checkoutResource()
throws ResourcePoolException,
java.lang.InterruptedException
ResourcePoolExceptionjava.lang.InterruptedExceptionjava.lang.Object checkoutResource(long timeout)
throws TimeoutException,
ResourcePoolException,
java.lang.InterruptedException
TimeoutExceptionResourcePoolExceptionjava.lang.InterruptedExceptionvoid checkinResource(java.lang.Object resc)
throws ResourcePoolException
ResourcePoolExceptionvoid checkinAll()
throws ResourcePoolException
ResourcePoolExceptionint statusInPool(java.lang.Object resc)
throws ResourcePoolException
ResourcePoolExceptionvoid markBroken(java.lang.Object resc)
throws ResourcePoolException
ResourcePoolExceptionint getMinPoolSize()
throws ResourcePoolException
ResourcePoolExceptionint getMaxPoolSize()
throws ResourcePoolException
ResourcePoolExceptionint getPoolSize()
throws ResourcePoolException
ResourcePoolExceptionvoid setPoolSize(int size)
throws ResourcePoolException
ResourcePoolExceptionint getAvailableCount()
throws ResourcePoolException
ResourcePoolExceptionint getExcludedCount()
throws ResourcePoolException
ResourcePoolExceptionint getAwaitingCheckinCount()
throws ResourcePoolException
ResourcePoolExceptionint getAwaitingCheckinNotExcludedCount()
throws ResourcePoolException
ResourcePoolExceptionlong getEffectiveExpirationEnforcementDelay()
throws ResourcePoolException
ResourcePoolExceptionlong getStartTime()
throws ResourcePoolException
ResourcePoolExceptionlong getUpTime()
throws ResourcePoolException
ResourcePoolExceptionlong getNumFailedCheckins()
throws ResourcePoolException
ResourcePoolExceptionlong getNumFailedCheckouts()
throws ResourcePoolException
ResourcePoolExceptionlong getNumFailedIdleTests()
throws ResourcePoolException
ResourcePoolExceptionint getNumCheckoutWaiters()
throws ResourcePoolException
ResourcePoolExceptionjava.lang.Throwable getLastAcquisitionFailure()
throws ResourcePoolException
ResourcePoolExceptionjava.lang.Throwable getLastCheckinFailure()
throws ResourcePoolException
ResourcePoolExceptionjava.lang.Throwable getLastCheckoutFailure()
throws ResourcePoolException
ResourcePoolExceptionjava.lang.Throwable getLastIdleCheckFailure()
throws ResourcePoolException
ResourcePoolExceptionjava.lang.Throwable getLastResourceTestFailure()
throws ResourcePoolException
ResourcePoolExceptionvoid resetPool()
throws ResourcePoolException
ResourcePoolExceptionvoid close()
throws ResourcePoolException
close in interface com.mchange.v1.util.ClosableResourceResourcePoolExceptionvoid close(boolean close_checked_out_resources)
throws ResourcePoolException
ResourcePoolException