Class PoolableThreadFactory

  • All Implemented Interfaces:
    org.apache.commons.pool.PoolableObjectFactory

    public class PoolableThreadFactory
    extends org.apache.commons.pool.BasePoolableObjectFactory
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroyObject​(java.lang.Object obj)  
      java.lang.Object makeObject()  
      boolean validateObject​(java.lang.Object obj)  
      • Methods inherited from class org.apache.commons.pool.BasePoolableObjectFactory

        activateObject, passivateObject
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PoolableThreadFactory

        public PoolableThreadFactory​(ThreadPool pool)
    • Method Detail

      • makeObject

        public final java.lang.Object makeObject()
                                          throws java.lang.Exception
        Specified by:
        makeObject in interface org.apache.commons.pool.PoolableObjectFactory
        Specified by:
        makeObject in class org.apache.commons.pool.BasePoolableObjectFactory
        Throws:
        java.lang.Exception
      • destroyObject

        public void destroyObject​(java.lang.Object obj)
                           throws java.lang.Exception
        Specified by:
        destroyObject in interface org.apache.commons.pool.PoolableObjectFactory
        Overrides:
        destroyObject in class org.apache.commons.pool.BasePoolableObjectFactory
        Throws:
        java.lang.Exception
      • validateObject

        public boolean validateObject​(java.lang.Object obj)
        Specified by:
        validateObject in interface org.apache.commons.pool.PoolableObjectFactory
        Overrides:
        validateObject in class org.apache.commons.pool.BasePoolableObjectFactory