Package com.complexible.common.pool

# Class ApachePoolConfig<T>

java.lang.Object
com.complexible.common.pool.PoolConfig<T,Exception>
com.complexible.common.pool.ApachePoolConfig<T>

public class ApachePoolConfig<T> extends PoolConfig<T,Exception>

Abstract base class for instantiating a pool backed by Apache Pool. Be careful that the PoolableObjectFactory passed into the config creates objects of the correct type or you will end up with runtime cast exceptions.

Since:
  0.5.1
Version:
  0.7
Author:
  Michael Grove

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `protected org.apache.commons.pool.PoolableObjectFactory<T>`
  `mFactory`

  ### Fields inherited from class com.complexible.common.pool.PoolConfig

  `mConfig, mMinPool`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ApachePoolConfig(org.apache.commons.pool.PoolableObjectFactory<T> theFactory)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Pool<T,Exception>`
  `create()`
  Create the Pool

  ### Methods inherited from class com.complexible.common.pool.PoolConfig

  `blockAtCapacity, expiration, failAtCapacity, growAtCapacity, maxIdle, maxPool, minPool, noExpiration`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### mFactory

    protected org.apache.commons.pool.PoolableObjectFactory<T> mFactory

- ## Constructor Details

  - ### ApachePoolConfig

    public ApachePoolConfig(org.apache.commons.pool.PoolableObjectFactory<T> theFactory)

- ## Method Details

  - ### create

    public Pool<T,Exception> create()
    Create the Pool
    Specified by:
      `create` in class `PoolConfig<T,Exception>`
    Returns:
      the pool