org.apache.commons.pool.impl
Class TestGenericObjectPool.SimpleFactory

java.lang.Object
  extended by 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


Constructor Summary
TestGenericObjectPool.SimpleFactory()
           
TestGenericObjectPool.SimpleFactory(boolean valid)
           
TestGenericObjectPool.SimpleFactory(boolean evalid, boolean ovalid)
           
 
Method Summary
 void activateObject(Object obj)
           
 void destroyObject(Object obj)
           
 boolean isThrowExceptionOnActivate()
           
 boolean isValidationEnabled()
           
 Object makeObject()
           
 void passivateObject(Object obj)
           
 void setDestroyLatency(long destroyLatency)
           
 void setMakeLatency(long makeLatency)
           
 void setMaxActive(int maxActive)
           
 void setThrowExceptionOnActivate(boolean b)
           
 void setThrowExceptionOnDestroy(boolean b)
           
 void setThrowExceptionOnPassivate(boolean bool)
           
 void setValidationEnabled(boolean b)
           
 boolean validateObject(Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestGenericObjectPool.SimpleFactory

public TestGenericObjectPool.SimpleFactory()

TestGenericObjectPool.SimpleFactory

public TestGenericObjectPool.SimpleFactory(boolean valid)

TestGenericObjectPool.SimpleFactory

public TestGenericObjectPool.SimpleFactory(boolean evalid,
                                           boolean ovalid)
Method Detail

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.