org.apache.commons.pool
Class TestKeyedObjectPool.FailingKeyedPoolableObjectFactory
java.lang.Object
org.apache.commons.pool.TestKeyedObjectPool.FailingKeyedPoolableObjectFactory
- All Implemented Interfaces:
- KeyedPoolableObjectFactory
- Enclosing class:
- TestKeyedObjectPool
protected static class TestKeyedObjectPool.FailingKeyedPoolableObjectFactory
- extends Object
- implements KeyedPoolableObjectFactory
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestKeyedObjectPool.FailingKeyedPoolableObjectFactory
public TestKeyedObjectPool.FailingKeyedPoolableObjectFactory()
reset
public void reset()
getMethodCalls
public List getMethodCalls()
getCurrentCount
public int getCurrentCount()
setCurrentCount
public void setCurrentCount(int count)
isMakeObjectFail
public boolean isMakeObjectFail()
setMakeObjectFail
public void setMakeObjectFail(boolean makeObjectFail)
isDestroyObjectFail
public boolean isDestroyObjectFail()
setDestroyObjectFail
public void setDestroyObjectFail(boolean destroyObjectFail)
isValidateObjectFail
public boolean isValidateObjectFail()
setValidateObjectFail
public void setValidateObjectFail(boolean validateObjectFail)
isActivateObjectFail
public boolean isActivateObjectFail()
setActivateObjectFail
public void setActivateObjectFail(boolean activateObjectFail)
isPassivateObjectFail
public boolean isPassivateObjectFail()
setPassivateObjectFail
public void setPassivateObjectFail(boolean passivateObjectFail)
makeObject
public Object makeObject(Object key)
throws Exception
- Specified by:
makeObject in interface KeyedPoolableObjectFactory
- Throws:
Exception
activateObject
public void activateObject(Object key,
Object obj)
throws Exception
- Specified by:
activateObject in interface KeyedPoolableObjectFactory
- Throws:
Exception
validateObject
public boolean validateObject(Object key,
Object obj)
- Specified by:
validateObject in interface KeyedPoolableObjectFactory
passivateObject
public void passivateObject(Object key,
Object obj)
throws Exception
- Specified by:
passivateObject in interface KeyedPoolableObjectFactory
- Throws:
Exception
destroyObject
public void destroyObject(Object key,
Object obj)
throws Exception
- Specified by:
destroyObject in interface KeyedPoolableObjectFactory
- Throws:
Exception
Copyright © 2001-2011 Apache Software Foundation. All Rights Reserved.