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

java.lang.Object
  extended by org.apache.commons.pool.impl.TestGenericObjectPool.SimpleFactory
All Implemented Interfaces:
PoolableObjectFactory
Enclosing class:
TestGenericObjectPool

public class TestGenericObjectPool.SimpleFactory
extends Object
implements 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)
           
 int getMakeCounter()
           
 boolean isThrowExceptionOnActivate()
           
 boolean isValidationEnabled()
           
 Object makeObject()
           
 void passivateObject(Object obj)
           
 void setDestroyLatency(long destroyLatency)
           
 void setEvenValid(boolean valid)
           
 void setMakeLatency(long makeLatency)
           
 void setMaxActive(int maxActive)
           
 void setOddValid(boolean valid)
           
 void setThrowExceptionOnActivate(boolean b)
           
 void setThrowExceptionOnDestroy(boolean b)
           
 void setThrowExceptionOnPassivate(boolean bool)
           
 void setValid(boolean valid)
           
 void setValidateLatency(long validateLatency)
           
 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

setValid

public void setValid(boolean valid)

setEvenValid

public void setEvenValid(boolean valid)

setOddValid

public void setOddValid(boolean valid)

setThrowExceptionOnPassivate

public void setThrowExceptionOnPassivate(boolean bool)

setMaxActive

public void setMaxActive(int maxActive)

setDestroyLatency

public void setDestroyLatency(long destroyLatency)

setMakeLatency

public void setMakeLatency(long makeLatency)

setValidateLatency

public void setValidateLatency(long validateLatency)

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)

getMakeCounter

public int getMakeCounter()


Copyright © 2001-2014 The Apache Software Foundation. All Rights Reserved.