org.apache.commons.pool
Class VisitTrackerFactory

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


Constructor Summary
VisitTrackerFactory()
           
 
Method Summary
 void activateObject(Object obj)
           
 void activateObject(Object key, Object obj)
           
 void destroyObject(Object obj)
           
 void destroyObject(Object key, Object obj)
           
 Object makeObject()
           
 Object makeObject(Object key)
           
 void passivateObject(Object obj)
           
 void passivateObject(Object key, Object obj)
           
 void resetId()
           
 boolean validateObject(Object obj)
           
 boolean validateObject(Object key, Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisitTrackerFactory

public VisitTrackerFactory()
Method Detail

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.