org.apache.commons.pool.impl
Class TestGenericObjectPool.SimpleFactory
java.lang.Object
org.apache.commons.pool.impl.TestGenericObjectPool.SimpleFactory
- All Implemented Interfaces:
- org.apache.commons.pool.PoolableObjectFactory
- Enclosing class:
- TestGenericObjectPool
public class TestGenericObjectPool.SimpleFactory
- extends Object
- implements org.apache.commons.pool.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 org.apache.commons.pool.PoolableObjectFactory
destroyObject
public void destroyObject(Object obj)
throws Exception
- Specified by:
destroyObject
in interface org.apache.commons.pool.PoolableObjectFactory
- Throws:
Exception
validateObject
public boolean validateObject(Object obj)
- Specified by:
validateObject
in interface org.apache.commons.pool.PoolableObjectFactory
activateObject
public void activateObject(Object obj)
throws Exception
- Specified by:
activateObject
in interface org.apache.commons.pool.PoolableObjectFactory
- Throws:
Exception
passivateObject
public void passivateObject(Object obj)
throws Exception
- Specified by:
passivateObject
in interface org.apache.commons.pool.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-2009 Apache Software Foundation. All Rights Reserved.