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.ResourcePoolFactory
createInstance, createInstance, createInstance, createInstance, getSharedInstance
-
-
-
-
Method Detail
-
createNoEventSupportInstance
public static BasicResourcePoolFactory createNoEventSupportInstance(int num_task_threads)
-
createNoEventSupportInstance
public static BasicResourcePoolFactory createNoEventSupportInstance(com.mchange.v2.async.AsynchronousRunner taskRunner, java.util.Timer timer)
-
setStart
public void setStart(int start) throws ResourcePoolException
If start is less than min, it will be ignored, and the pool will start with min.- Specified by:
setStart
in classResourcePoolFactory
- Throws:
ResourcePoolException
-
getStart
public int getStart() throws ResourcePoolException
- Specified by:
getStart
in classResourcePoolFactory
- Throws:
ResourcePoolException
-
setMin
public void setMin(int min) throws ResourcePoolException
- Specified by:
setMin
in classResourcePoolFactory
- Throws:
ResourcePoolException
-
getMin
public int getMin() throws ResourcePoolException
- Specified by:
getMin
in classResourcePoolFactory
- Throws:
ResourcePoolException
-
setMax
public void setMax(int max) throws ResourcePoolException
- Specified by:
setMax
in classResourcePoolFactory
- Throws:
ResourcePoolException
-
getMax
public int getMax() throws ResourcePoolException
- Specified by:
getMax
in classResourcePoolFactory
- Throws:
ResourcePoolException
-
setIncrement
public void setIncrement(int inc) throws ResourcePoolException
- Specified by:
setIncrement
in classResourcePoolFactory
- Throws:
ResourcePoolException
-
getIncrement
public int getIncrement() throws ResourcePoolException
- Specified by:
getIncrement
in classResourcePoolFactory
- Throws:
ResourcePoolException
-
setAcquisitionRetryAttempts
public void setAcquisitionRetryAttempts(int retry_attempts) throws ResourcePoolException
- Specified by:
setAcquisitionRetryAttempts
in classResourcePoolFactory
- Throws:
ResourcePoolException
-
getAcquisitionRetryAttempts
public int getAcquisitionRetryAttempts() throws ResourcePoolException
- Specified by:
getAcquisitionRetryAttempts
in classResourcePoolFactory
- Throws:
ResourcePoolException
-
setAcquisitionRetryDelay
public void setAcquisitionRetryDelay(int retry_delay) throws ResourcePoolException
- Specified by:
setAcquisitionRetryDelay
in classResourcePoolFactory
- Throws:
ResourcePoolException
-
getAcquisitionRetryDelay
public int getAcquisitionRetryDelay() throws ResourcePoolException
- Specified by:
getAcquisitionRetryDelay
in classResourcePoolFactory
- Throws:
ResourcePoolException
-
setIdleResourceTestPeriod
public void setIdleResourceTestPeriod(long test_period)
- Specified by:
setIdleResourceTestPeriod
in classResourcePoolFactory
-
getIdleResourceTestPeriod
public long getIdleResourceTestPeriod()
- Specified by:
getIdleResourceTestPeriod
in classResourcePoolFactory
-
setResourceMaxAge
public void setResourceMaxAge(long max_age) throws ResourcePoolException
- Specified by:
setResourceMaxAge
in classResourcePoolFactory
- Throws:
ResourcePoolException
-
getResourceMaxAge
public long getResourceMaxAge() throws ResourcePoolException
- Specified by:
getResourceMaxAge
in classResourcePoolFactory
- Throws:
ResourcePoolException
-
setResourceMaxIdleTime
public void setResourceMaxIdleTime(long millis) throws ResourcePoolException
- Specified by:
setResourceMaxIdleTime
in classResourcePoolFactory
- Throws:
ResourcePoolException
-
getResourceMaxIdleTime
public long getResourceMaxIdleTime() throws ResourcePoolException
- Specified by:
getResourceMaxIdleTime
in classResourcePoolFactory
- Throws:
ResourcePoolException
-
setExcessResourceMaxIdleTime
public void setExcessResourceMaxIdleTime(long millis) throws ResourcePoolException
- Specified by:
setExcessResourceMaxIdleTime
in classResourcePoolFactory
- Throws:
ResourcePoolException
-
getExcessResourceMaxIdleTime
public long getExcessResourceMaxIdleTime() throws ResourcePoolException
- Specified by:
getExcessResourceMaxIdleTime
in classResourcePoolFactory
- Throws:
ResourcePoolException
-
getDestroyOverdueResourceTime
public long getDestroyOverdueResourceTime() throws ResourcePoolException
- Specified by:
getDestroyOverdueResourceTime
in classResourcePoolFactory
- Throws:
ResourcePoolException
-
setDestroyOverdueResourceTime
public void setDestroyOverdueResourceTime(long millis) throws ResourcePoolException
- Specified by:
setDestroyOverdueResourceTime
in classResourcePoolFactory
- Throws:
ResourcePoolException
-
setExpirationEnforcementDelay
public void setExpirationEnforcementDelay(long expiration_enforcement_delay) throws ResourcePoolException
- Specified by:
setExpirationEnforcementDelay
in classResourcePoolFactory
- Throws:
ResourcePoolException
-
getExpirationEnforcementDelay
public long getExpirationEnforcementDelay() throws ResourcePoolException
- Specified by:
getExpirationEnforcementDelay
in classResourcePoolFactory
- Throws:
ResourcePoolException
-
setBreakOnAcquisitionFailure
public void setBreakOnAcquisitionFailure(boolean break_on_acquisition_failure) throws ResourcePoolException
- Specified by:
setBreakOnAcquisitionFailure
in classResourcePoolFactory
- Throws:
ResourcePoolException
-
getBreakOnAcquisitionFailure
public boolean getBreakOnAcquisitionFailure() throws ResourcePoolException
- Specified by:
getBreakOnAcquisitionFailure
in classResourcePoolFactory
- Throws:
ResourcePoolException
-
setDebugStoreCheckoutStackTrace
public void setDebugStoreCheckoutStackTrace(boolean debug_store_checkout_stacktrace) throws ResourcePoolException
- Specified by:
setDebugStoreCheckoutStackTrace
in classResourcePoolFactory
- Throws:
ResourcePoolException
-
getDebugStoreCheckoutStackTrace
public boolean getDebugStoreCheckoutStackTrace() throws ResourcePoolException
- Specified by:
getDebugStoreCheckoutStackTrace
in classResourcePoolFactory
- Throws:
ResourcePoolException
-
setForceSynchronousCheckins
public void setForceSynchronousCheckins(boolean force_synchronous_checkins) throws ResourcePoolException
- Specified by:
setForceSynchronousCheckins
in classResourcePoolFactory
- Throws:
ResourcePoolException
-
getForceSynchronousCheckins
public boolean getForceSynchronousCheckins() throws ResourcePoolException
- Specified by:
getForceSynchronousCheckins
in classResourcePoolFactory
- Throws:
ResourcePoolException
-
createPool
public ResourcePool createPool(ResourcePool.Manager mgr) throws ResourcePoolException
- Specified by:
createPool
in classResourcePoolFactory
- Throws:
ResourcePoolException
-
-