Class PoolableThreadFactory

java.lang.Object
org.apache.commons.pool.BasePoolableObjectFactory
de.hybris.platform.util.threadpool.PoolableThreadFactory
All Implemented Interfaces:
org.apache.commons.pool.PoolableObjectFactory

public class PoolableThreadFactory extends org.apache.commons.pool.BasePoolableObjectFactory
  • Constructor Details

    • PoolableThreadFactory

      public PoolableThreadFactory(ThreadPool pool)
  • Method Details

    • makeObject

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

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

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