org.apache.commons.pool.performance
Class SleepingObjectFactory
java.lang.Object
org.apache.commons.pool.performance.SleepingObjectFactory
- All Implemented Interfaces:
- PoolableObjectFactory
public class SleepingObjectFactory
- extends Object
- implements PoolableObjectFactory
Sleepy ObjectFactory (everything takes a while longer)
- Version:
- $Revision: 777749 $ $Date: 2009-05-22 17:04:54 -0700 (Fri, 22 May 2009) $
- Author:
- Dirk Verbeeck
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SleepingObjectFactory
public SleepingObjectFactory()
makeObject
public Object makeObject()
throws Exception
- Specified by:
makeObject
in interface PoolableObjectFactory
- Throws:
Exception
destroyObject
public void destroyObject(Object obj)
throws Exception
- Specified by:
destroyObject
in interface PoolableObjectFactory
- Throws:
Exception
validateObject
public boolean validateObject(Object obj)
- Specified by:
validateObject
in interface PoolableObjectFactory
activateObject
public void activateObject(Object obj)
throws Exception
- Specified by:
activateObject
in interface PoolableObjectFactory
- Throws:
Exception
passivateObject
public void passivateObject(Object obj)
throws Exception
- Specified by:
passivateObject
in interface PoolableObjectFactory
- Throws:
Exception
isDebug
public boolean isDebug()
setDebug
public void setDebug(boolean b)
Copyright © 2001-2014 The Apache Software Foundation. All Rights Reserved.