| java.lang.Object com.completex.objective.components.pool.impl.ResourceLimitingPool
ResourceLimitingPool | public class ResourceLimitingPool implements Pool,TimerListener(Code) | | author: Gennady Krizhevsky |
DEFAULT_MAX_CONNECTIONS | final public static int DEFAULT_MAX_CONNECTIONS(Code) | | |
DEFAULT_STMT_CACHE_SIZE | final public static int DEFAULT_STMT_CACHE_SIZE(Code) | | |
DEFAULT_TIMEOUT | final public static int DEFAULT_TIMEOUT(Code) | | |
ResourceLimitingPool | public ResourceLimitingPool(ResourceFactory resourceFactory, int maxSize, long shrinkTimeInterval, Log logger)(Code) | | |
ResourceLimitingPool | public ResourceLimitingPool(ResourceFactory resourceFactory, int maxSize, long shrinkTimeInterval, long timeout, Log logger)(Code) | | Parameters: resourceFactory - Parameters: maxSize - Parameters: shrinkTimeInterval - Parameters: timeout - time to wait until giving up on resource in ms. If 0 is set - will wait indefinitely. Parameters: logger - |
getMaxSize | public int getMaxSize()(Code) | | |
releaseBadResource | public void releaseBadResource(Object resource)(Code) | | Do not return bad resource into the pool - just reduce the numberOfBuzy count
Parameters: resource - |
releaseResource | public void releaseResource(Object resource)(Code) | | |
setShrinkSize | public void setShrinkSize(int shrinkSize)(Code) | | |
setShrinkTimeInterval | public void setShrinkTimeInterval(long shrinkTimeInterval)(Code) | | |
setTimeout | public void setTimeout(long timeout)(Code) | | |
shutdown | public void shutdown()(Code) | | |
start | public void start()(Code) | | |
timerEvent | public void timerEvent()(Code) | | |
|
|