Class ApachePoolConfig<T>


  • public class ApachePoolConfig<T>
    extends PoolConfig<T,​java.lang.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 Detail

      • mFactory

        protected org.apache.commons.pool.PoolableObjectFactory<T> mFactory
    • Constructor Detail

      • ApachePoolConfig

        public ApachePoolConfig​(org.apache.commons.pool.PoolableObjectFactory<T> theFactory)
    • Method Detail

      • create

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