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 Summary
Constructors Constructor Description PoolableThreadFactory(ThreadPool pool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroyObject(java.lang.Object obj)java.lang.ObjectmakeObject()booleanvalidateObject(java.lang.Object obj)
-
-
-
Constructor Detail
-
PoolableThreadFactory
public PoolableThreadFactory(ThreadPool pool)
-
-
Method Detail
-
makeObject
public final java.lang.Object makeObject() throws java.lang.Exception- Specified by:
makeObjectin interfaceorg.apache.commons.pool.PoolableObjectFactory- Specified by:
makeObjectin classorg.apache.commons.pool.BasePoolableObjectFactory- Throws:
java.lang.Exception
-
destroyObject
public void destroyObject(java.lang.Object obj) throws java.lang.Exception- Specified by:
destroyObjectin interfaceorg.apache.commons.pool.PoolableObjectFactory- Overrides:
destroyObjectin classorg.apache.commons.pool.BasePoolableObjectFactory- Throws:
java.lang.Exception
-
validateObject
public boolean validateObject(java.lang.Object obj)
- Specified by:
validateObjectin interfaceorg.apache.commons.pool.PoolableObjectFactory- Overrides:
validateObjectin classorg.apache.commons.pool.BasePoolableObjectFactory
-
-