Class DefaultParameterParserPool

java.lang.Object
org.apache.commons.pool2.BaseObject
org.apache.commons.pool2.impl.BaseGenericObjectPool<DefaultParameterParser>
org.apache.commons.pool2.impl.GenericKeyedObjectPool<Class<? extends DefaultParameterParser>,DefaultParameterParser>
org.apache.fulcrum.parser.pool.DefaultParameterParserPool
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.commons.pool2.impl.GenericKeyedObjectPoolMXBean<Class<? extends DefaultParameterParser>>, org.apache.commons.pool2.KeyedObjectPool<Class<? extends DefaultParameterParser>,DefaultParameterParser>, org.apache.commons.pool2.UsageTracking<DefaultParameterParser>

public class DefaultParameterParserPool extends org.apache.commons.pool2.impl.GenericKeyedObjectPool<Class<? extends DefaultParameterParser>,DefaultParameterParser>
Pool manager for DefaultParameterParser objects, keyed by the concrete DefaultParameterParser subclass requested, so that a configured custom subclass is genuinely instantiated and pooled instead of always being served the default class.
Version:
$Id: DefaultParameterParserPool.java 1851080 2019-01-16 12:07:00Z painter $
Author:
Jeffery Painter
  • Field Summary

    Fields inherited from class org.apache.commons.pool2.impl.BaseGenericObjectPool

    abandonedConfig, MEAN_TIMING_STATS_CACHE_SIZE
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultParameterParserPool(org.apache.commons.pool2.KeyedPooledObjectFactory<Class<? extends DefaultParameterParser>,DefaultParameterParser> factory)
    Constructor.
    DefaultParameterParserPool(org.apache.commons.pool2.KeyedPooledObjectFactory<Class<? extends DefaultParameterParser>,DefaultParameterParser> factory, org.apache.commons.pool2.impl.GenericKeyedObjectPoolConfig<DefaultParameterParser> config)
    Constructor.
  • Method Summary

    Methods inherited from class org.apache.commons.pool2.impl.GenericKeyedObjectPool

    addObject, borrowObject, borrowObject, borrowObject, clear, clear, clear, clearOldest, close, evict, getFactory, getKeys, getMaxIdlePerKey, getMaxTotalPerKey, getMinIdlePerKey, getNumActive, getNumActive, getNumActivePerKey, getNumIdle, getNumIdle, getNumWaiters, getNumWaitersByKey, getReuseCapacityOnMaintenance, getReuseCapacityOnReturn, invalidateObject, invalidateObject, listAllObjects, preparePool, returnObject, setConfig, setMaxIdlePerKey, setMaxTotalPerKey, setMinIdlePerKey, setReuseCapacityOnMaintenance, setReuseCapacityOnReturn, toStringAppendFields, use

    Methods inherited from class org.apache.commons.pool2.impl.BaseGenericObjectPool

    getBlockWhenExhausted, getBorrowedCount, getCollectDetailedStatistics, getCreatedCount, getCreationStackTrace, getDestroyedByBorrowValidationCount, getDestroyedByEvictorCount, getDestroyedCount, getDurationBetweenEvictionRuns, getEvictionPolicy, getEvictionPolicyClassName, getEvictorShutdownTimeout, getEvictorShutdownTimeoutDuration, getEvictorShutdownTimeoutMillis, getFairness, getJmxName, getLifo, getLogAbandoned, getMaxBorrowWaitDuration, getMaxBorrowWaitTimeMillis, getMaxTotal, getMaxWaitDuration, getMaxWaitMillis, getMeanActiveDuration, getMeanActiveTimeMillis, getMeanBorrowWaitDuration, getMeanBorrowWaitTimeMillis, getMeanIdleDuration, getMeanIdleTimeMillis, getMessageStatistics, getMinEvictableIdleDuration, getMinEvictableIdleTime, getMinEvictableIdleTimeMillis, getNumTestsPerEvictionRun, getRemoveAbandonedOnBorrow, getRemoveAbandonedOnMaintenance, getRemoveAbandonedTimeout, getRemoveAbandonedTimeoutDuration, getReturnedCount, getSoftMinEvictableIdleDuration, getSoftMinEvictableIdleTime, getSoftMinEvictableIdleTimeMillis, getSwallowedExceptionListener, getTestOnBorrow, getTestOnCreate, getTestOnReturn, getTestWhileIdle, getTimeBetweenEvictionRuns, getTimeBetweenEvictionRunsMillis, isAbandonedConfig, isClosed, markReturningState, setAbandonedConfig, setBlockWhenExhausted, setCollectDetailedStatistics, setConfig, setDurationBetweenEvictionRuns, setEvictionPolicy, setEvictionPolicyClassName, setEvictionPolicyClassName, setEvictorShutdownTimeout, setEvictorShutdownTimeoutMillis, setLifo, setMaxTotal, setMaxWait, setMaxWaitMillis, setMessagesStatistics, setMinEvictableIdle, setMinEvictableIdleDuration, setMinEvictableIdleTime, setMinEvictableIdleTimeMillis, setNumTestsPerEvictionRun, setSoftMinEvictableIdle, setSoftMinEvictableIdleDuration, setSoftMinEvictableIdleTime, setSoftMinEvictableIdleTimeMillis, setSwallowedExceptionListener, setTestOnBorrow, setTestOnCreate, setTestOnReturn, setTestWhileIdle, setTimeBetweenEvictionRuns, setTimeBetweenEvictionRunsMillis

    Methods inherited from class org.apache.commons.pool2.BaseObject

    toString

    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.GenericKeyedObjectPoolMXBean

    getBlockWhenExhausted, getBorrowedCount, getCreatedCount, getCreationStackTrace, getDestroyedByBorrowValidationCount, getDestroyedByEvictorCount, getDestroyedCount, getFairness, getLifo, getLogAbandoned, getMaxBorrowWaitTimeMillis, getMaxTotal, getMaxWaitMillis, getMeanActiveTimeMillis, getMeanBorrowWaitTimeMillis, getMeanIdleTimeMillis, getMinEvictableIdleTimeMillis, getNumTestsPerEvictionRun, getRemoveAbandonedOnBorrow, getRemoveAbandonedOnMaintenance, getRemoveAbandonedTimeout, getReturnedCount, getTestOnBorrow, getTestOnCreate, getTestOnReturn, getTestWhileIdle, getTimeBetweenEvictionRunsMillis, isAbandonedConfig, isClosed

    Methods inherited from interface org.apache.commons.pool2.KeyedObjectPool

    addObjects, addObjects
  • Constructor Details

    • DefaultParameterParserPool

      public DefaultParameterParserPool(org.apache.commons.pool2.KeyedPooledObjectFactory<Class<? extends DefaultParameterParser>,DefaultParameterParser> factory)
      Constructor.
      Parameters:
      factory - the factory
    • DefaultParameterParserPool

      public DefaultParameterParserPool(org.apache.commons.pool2.KeyedPooledObjectFactory<Class<? extends DefaultParameterParser>,DefaultParameterParser> factory, org.apache.commons.pool2.impl.GenericKeyedObjectPoolConfig<DefaultParameterParser> config)
      Constructor. This can be used to have full control over the pool using configuration object.
      Parameters:
      factory - the factory
      config - user defined configuration