Package org.apache.fulcrum.parser.pool
Class CookieParserPool
- java.lang.Object
-
- org.apache.commons.pool2.BaseObject
-
- org.apache.commons.pool2.impl.BaseGenericObjectPool<T>
-
- org.apache.commons.pool2.impl.GenericObjectPool<DefaultCookieParser>
-
- org.apache.fulcrum.parser.pool.CookieParserPool
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.apache.commons.pool2.impl.GenericObjectPoolMXBean
,org.apache.commons.pool2.ObjectPool<DefaultCookieParser>
,org.apache.commons.pool2.UsageTracking<DefaultCookieParser>
public class CookieParserPool extends org.apache.commons.pool2.impl.GenericObjectPool<DefaultCookieParser>
Pool manager forBaseValueParser
objects- Version:
- $Id: CookieParserPool.java 1851080 2019-01-16 12:07:00Z painter $
- Author:
- Jeffery Painter
-
-
Constructor Summary
Constructors Constructor Description CookieParserPool(org.apache.commons.pool2.PooledObjectFactory<DefaultCookieParser> factory)
Constructor.CookieParserPool(org.apache.commons.pool2.PooledObjectFactory<DefaultCookieParser> factory, org.apache.commons.pool2.impl.GenericObjectPoolConfig config)
Constructor.
-
Method Summary
-
Methods inherited from class org.apache.commons.pool2.impl.GenericObjectPool
addObject, borrowObject, borrowObject, clear, close, evict, getFactory, getFactoryType, getLogAbandoned, getMaxIdle, getMinIdle, getNumActive, getNumIdle, getNumWaiters, getRemoveAbandonedOnBorrow, getRemoveAbandonedOnMaintenance, getRemoveAbandonedTimeout, invalidateObject, isAbandonedConfig, listAllObjects, preparePool, returnObject, setAbandonedConfig, setConfig, setMaxIdle, setMinIdle, toStringAppendFields, use
-
Methods inherited from class org.apache.commons.pool2.impl.BaseGenericObjectPool
getBlockWhenExhausted, getBorrowedCount, getCreatedCount, getCreationStackTrace, getDestroyedByBorrowValidationCount, getDestroyedByEvictorCount, getDestroyedCount, getEvictionPolicy, getEvictionPolicyClassName, getEvictorShutdownTimeoutMillis, getFairness, getJmxName, getLifo, getMaxBorrowWaitTimeMillis, getMaxTotal, getMaxWaitMillis, getMeanActiveTimeMillis, getMeanBorrowWaitTimeMillis, getMeanIdleTimeMillis, getMinEvictableIdleTimeMillis, getNumTestsPerEvictionRun, getReturnedCount, getSoftMinEvictableIdleTimeMillis, getSwallowedExceptionListener, getTestOnBorrow, getTestOnCreate, getTestOnReturn, getTestWhileIdle, getTimeBetweenEvictionRunsMillis, isClosed, markReturningState, setBlockWhenExhausted, setConfig, setEvictionPolicy, setEvictionPolicyClassName, setEvictionPolicyClassName, setEvictorShutdownTimeoutMillis, setLifo, setMaxTotal, setMaxWaitMillis, setMinEvictableIdleTimeMillis, setNumTestsPerEvictionRun, setSoftMinEvictableIdleTimeMillis, setSwallowedExceptionListener, setTestOnBorrow, setTestOnCreate, setTestOnReturn, setTestWhileIdle, setTimeBetweenEvictionRunsMillis
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.commons.pool2.impl.GenericObjectPoolMXBean
getBlockWhenExhausted, getBorrowedCount, getCreatedCount, getCreationStackTrace, getDestroyedByBorrowValidationCount, getDestroyedByEvictorCount, getDestroyedCount, getFairness, getLifo, getMaxBorrowWaitTimeMillis, getMaxTotal, getMaxWaitMillis, getMeanActiveTimeMillis, getMeanBorrowWaitTimeMillis, getMeanIdleTimeMillis, getMinEvictableIdleTimeMillis, getNumTestsPerEvictionRun, getReturnedCount, getTestOnBorrow, getTestOnCreate, getTestOnReturn, getTestWhileIdle, getTimeBetweenEvictionRunsMillis, isClosed
-
-
-
-
Constructor Detail
-
CookieParserPool
public CookieParserPool(org.apache.commons.pool2.PooledObjectFactory<DefaultCookieParser> factory)
Constructor.- Parameters:
factory
- the factory
-
CookieParserPool
public CookieParserPool(org.apache.commons.pool2.PooledObjectFactory<DefaultCookieParser> factory, org.apache.commons.pool2.impl.GenericObjectPoolConfig config)
Constructor. This can be used to have full control over the pool using configuration object.- Parameters:
factory
- the factoryconfig
- user defined configuration
-
-