Package com.mchange.v2.resourcepool
Class BasicResourcePoolFactory
- java.lang.Object
- 
- com.mchange.v2.resourcepool.ResourcePoolFactory
- 
- com.mchange.v2.resourcepool.BasicResourcePoolFactory
 
 
- 
 public class BasicResourcePoolFactory extends ResourcePoolFactory 
- 
- 
Method Summary- 
Methods inherited from class com.mchange.v2.resourcepool.ResourcePoolFactorycreateInstance, createInstance, createInstance, createInstance, getSharedInstance
 
- 
 
- 
- 
- 
Method Detail- 
createNoEventSupportInstancepublic static BasicResourcePoolFactory createNoEventSupportInstance(int num_task_threads) 
 - 
createNoEventSupportInstancepublic static BasicResourcePoolFactory createNoEventSupportInstance(com.mchange.v2.async.AsynchronousRunner taskRunner, java.util.Timer timer) 
 - 
setStartpublic void setStart(int start) throws ResourcePoolExceptionIf start is less than min, it will be ignored, and the pool will start with min.- Specified by:
- setStartin class- ResourcePoolFactory
- Throws:
- ResourcePoolException
 
 - 
getStartpublic int getStart() throws ResourcePoolException- Specified by:
- getStartin class- ResourcePoolFactory
- Throws:
- ResourcePoolException
 
 - 
setMinpublic void setMin(int min) throws ResourcePoolException- Specified by:
- setMinin class- ResourcePoolFactory
- Throws:
- ResourcePoolException
 
 - 
getMinpublic int getMin() throws ResourcePoolException- Specified by:
- getMinin class- ResourcePoolFactory
- Throws:
- ResourcePoolException
 
 - 
setMaxpublic void setMax(int max) throws ResourcePoolException- Specified by:
- setMaxin class- ResourcePoolFactory
- Throws:
- ResourcePoolException
 
 - 
getMaxpublic int getMax() throws ResourcePoolException- Specified by:
- getMaxin class- ResourcePoolFactory
- Throws:
- ResourcePoolException
 
 - 
setIncrementpublic void setIncrement(int inc) throws ResourcePoolException- Specified by:
- setIncrementin class- ResourcePoolFactory
- Throws:
- ResourcePoolException
 
 - 
getIncrementpublic int getIncrement() throws ResourcePoolException- Specified by:
- getIncrementin class- ResourcePoolFactory
- Throws:
- ResourcePoolException
 
 - 
setAcquisitionRetryAttemptspublic void setAcquisitionRetryAttempts(int retry_attempts) throws ResourcePoolException- Specified by:
- setAcquisitionRetryAttemptsin class- ResourcePoolFactory
- Throws:
- ResourcePoolException
 
 - 
getAcquisitionRetryAttemptspublic int getAcquisitionRetryAttempts() throws ResourcePoolException- Specified by:
- getAcquisitionRetryAttemptsin class- ResourcePoolFactory
- Throws:
- ResourcePoolException
 
 - 
setAcquisitionRetryDelaypublic void setAcquisitionRetryDelay(int retry_delay) throws ResourcePoolException- Specified by:
- setAcquisitionRetryDelayin class- ResourcePoolFactory
- Throws:
- ResourcePoolException
 
 - 
getAcquisitionRetryDelaypublic int getAcquisitionRetryDelay() throws ResourcePoolException- Specified by:
- getAcquisitionRetryDelayin class- ResourcePoolFactory
- Throws:
- ResourcePoolException
 
 - 
setIdleResourceTestPeriodpublic void setIdleResourceTestPeriod(long test_period) - Specified by:
- setIdleResourceTestPeriodin class- ResourcePoolFactory
 
 - 
getIdleResourceTestPeriodpublic long getIdleResourceTestPeriod() - Specified by:
- getIdleResourceTestPeriodin class- ResourcePoolFactory
 
 - 
setResourceMaxAgepublic void setResourceMaxAge(long max_age) throws ResourcePoolException- Specified by:
- setResourceMaxAgein class- ResourcePoolFactory
- Throws:
- ResourcePoolException
 
 - 
getResourceMaxAgepublic long getResourceMaxAge() throws ResourcePoolException- Specified by:
- getResourceMaxAgein class- ResourcePoolFactory
- Throws:
- ResourcePoolException
 
 - 
setResourceMaxIdleTimepublic void setResourceMaxIdleTime(long millis) throws ResourcePoolException- Specified by:
- setResourceMaxIdleTimein class- ResourcePoolFactory
- Throws:
- ResourcePoolException
 
 - 
getResourceMaxIdleTimepublic long getResourceMaxIdleTime() throws ResourcePoolException- Specified by:
- getResourceMaxIdleTimein class- ResourcePoolFactory
- Throws:
- ResourcePoolException
 
 - 
setExcessResourceMaxIdleTimepublic void setExcessResourceMaxIdleTime(long millis) throws ResourcePoolException- Specified by:
- setExcessResourceMaxIdleTimein class- ResourcePoolFactory
- Throws:
- ResourcePoolException
 
 - 
getExcessResourceMaxIdleTimepublic long getExcessResourceMaxIdleTime() throws ResourcePoolException- Specified by:
- getExcessResourceMaxIdleTimein class- ResourcePoolFactory
- Throws:
- ResourcePoolException
 
 - 
getDestroyOverdueResourceTimepublic long getDestroyOverdueResourceTime() throws ResourcePoolException- Specified by:
- getDestroyOverdueResourceTimein class- ResourcePoolFactory
- Throws:
- ResourcePoolException
 
 - 
setDestroyOverdueResourceTimepublic void setDestroyOverdueResourceTime(long millis) throws ResourcePoolException- Specified by:
- setDestroyOverdueResourceTimein class- ResourcePoolFactory
- Throws:
- ResourcePoolException
 
 - 
setExpirationEnforcementDelaypublic void setExpirationEnforcementDelay(long expiration_enforcement_delay) throws ResourcePoolException- Specified by:
- setExpirationEnforcementDelayin class- ResourcePoolFactory
- Throws:
- ResourcePoolException
 
 - 
getExpirationEnforcementDelaypublic long getExpirationEnforcementDelay() throws ResourcePoolException- Specified by:
- getExpirationEnforcementDelayin class- ResourcePoolFactory
- Throws:
- ResourcePoolException
 
 - 
setBreakOnAcquisitionFailurepublic void setBreakOnAcquisitionFailure(boolean break_on_acquisition_failure) throws ResourcePoolException- Specified by:
- setBreakOnAcquisitionFailurein class- ResourcePoolFactory
- Throws:
- ResourcePoolException
 
 - 
getBreakOnAcquisitionFailurepublic boolean getBreakOnAcquisitionFailure() throws ResourcePoolException- Specified by:
- getBreakOnAcquisitionFailurein class- ResourcePoolFactory
- Throws:
- ResourcePoolException
 
 - 
setDebugStoreCheckoutStackTracepublic void setDebugStoreCheckoutStackTrace(boolean debug_store_checkout_stacktrace) throws ResourcePoolException- Specified by:
- setDebugStoreCheckoutStackTracein class- ResourcePoolFactory
- Throws:
- ResourcePoolException
 
 - 
getDebugStoreCheckoutStackTracepublic boolean getDebugStoreCheckoutStackTrace() throws ResourcePoolException- Specified by:
- getDebugStoreCheckoutStackTracein class- ResourcePoolFactory
- Throws:
- ResourcePoolException
 
 - 
setForceSynchronousCheckinspublic void setForceSynchronousCheckins(boolean force_synchronous_checkins) throws ResourcePoolException- Specified by:
- setForceSynchronousCheckinsin class- ResourcePoolFactory
- Throws:
- ResourcePoolException
 
 - 
getForceSynchronousCheckinspublic boolean getForceSynchronousCheckins() throws ResourcePoolException- Specified by:
- getForceSynchronousCheckinsin class- ResourcePoolFactory
- Throws:
- ResourcePoolException
 
 - 
createPoolpublic ResourcePool createPool(ResourcePool.Manager mgr) throws ResourcePoolException - Specified by:
- createPoolin class- ResourcePoolFactory
- Throws:
- ResourcePoolException
 
 
- 
 
-