org.apache.commons.pool.impl
Class TestGenericObjectPool.SimpleFactory
java.lang.Object
org.apache.commons.pool.impl.TestGenericObjectPool.SimpleFactory
- All Implemented Interfaces:
- PoolableObjectFactory
- Enclosing class:
- TestGenericObjectPool
public class TestGenericObjectPool.SimpleFactory
- extends Object
- implements PoolableObjectFactory
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestGenericObjectPool.SimpleFactory
public TestGenericObjectPool.SimpleFactory()
TestGenericObjectPool.SimpleFactory
public TestGenericObjectPool.SimpleFactory(boolean valid)
TestGenericObjectPool.SimpleFactory
public TestGenericObjectPool.SimpleFactory(boolean evalid,
boolean ovalid)
setThrowExceptionOnPassivate
public void setThrowExceptionOnPassivate(boolean bool)
setMaxActive
public void setMaxActive(int maxActive)
setDestroyLatency
public void setDestroyLatency(long destroyLatency)
setMakeLatency
public void setMakeLatency(long makeLatency)
makeObject
public Object makeObject()
- Specified by:
makeObject in interface PoolableObjectFactory
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
isThrowExceptionOnActivate
public boolean isThrowExceptionOnActivate()
setThrowExceptionOnActivate
public void setThrowExceptionOnActivate(boolean b)
setThrowExceptionOnDestroy
public void setThrowExceptionOnDestroy(boolean b)
isValidationEnabled
public boolean isValidationEnabled()
setValidationEnabled
public void setValidationEnabled(boolean b)
Copyright © 2001-2011 Apache Software Foundation. All Rights Reserved.