org.apache.commons.pool
Class VisitTrackerFactory
java.lang.Object
org.apache.commons.pool.VisitTrackerFactory
- All Implemented Interfaces:
- KeyedPoolableObjectFactory, PoolableObjectFactory
public class VisitTrackerFactory
- extends Object
- implements PoolableObjectFactory, KeyedPoolableObjectFactory
Factory that creates VisitTracker instances. Used to
test Evictor runs.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VisitTrackerFactory
public VisitTrackerFactory()
makeObject
public Object makeObject()
- Specified by:
makeObject
in interface PoolableObjectFactory
makeObject
public Object makeObject(Object key)
- Specified by:
makeObject
in interface KeyedPoolableObjectFactory
destroyObject
public void destroyObject(Object obj)
- Specified by:
destroyObject
in interface PoolableObjectFactory
destroyObject
public void destroyObject(Object key,
Object obj)
- Specified by:
destroyObject
in interface KeyedPoolableObjectFactory
validateObject
public boolean validateObject(Object obj)
- Specified by:
validateObject
in interface PoolableObjectFactory
validateObject
public boolean validateObject(Object key,
Object obj)
- Specified by:
validateObject
in interface KeyedPoolableObjectFactory
activateObject
public void activateObject(Object obj)
throws Exception
- Specified by:
activateObject
in interface PoolableObjectFactory
- Throws:
Exception
activateObject
public void activateObject(Object key,
Object obj)
throws Exception
- Specified by:
activateObject
in interface KeyedPoolableObjectFactory
- Throws:
Exception
passivateObject
public void passivateObject(Object obj)
throws Exception
- Specified by:
passivateObject
in interface PoolableObjectFactory
- Throws:
Exception
passivateObject
public void passivateObject(Object key,
Object obj)
throws Exception
- Specified by:
passivateObject
in interface KeyedPoolableObjectFactory
- Throws:
Exception
resetId
public void resetId()
Copyright © 2001-2014 The Apache Software Foundation. All Rights Reserved.