org.exist.util
Class XMLReaderPool

java.lang.Object
  extended by org.apache.commons.pool.BaseObjectPool
      extended by org.apache.commons.pool.impl.StackObjectPool
          extended by org.exist.util.XMLReaderPool
All Implemented Interfaces:
ObjectPool

public class XMLReaderPool
extends StackObjectPool

Maintains a pool of XMLReader objects. The pool is available through BrokerPool.getParserPool().

Author:
wolf

Constructor Summary
XMLReaderPool(Configuration config, PoolableObjectFactory factory, int maxIdle, int initIdleCapacity)
           
 
Method Summary
 XMLReader borrowXMLReader()
           
 void returnXMLReader(XMLReader reader)
           
 
Methods inherited from class org.apache.commons.pool.impl.StackObjectPool
addObject, borrowObject, clear, close, getNumActive, getNumIdle, invalidateObject, returnObject, setFactory
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLReaderPool

public XMLReaderPool(Configuration config,
                     PoolableObjectFactory factory,
                     int maxIdle,
                     int initIdleCapacity)
Parameters:
factory -
maxIdle -
initIdleCapacity -
Method Detail

borrowXMLReader

public XMLReader borrowXMLReader()

returnXMLReader

public void returnXMLReader(XMLReader reader)


Copyright (C) Wolfgang Meier. All rights reserved.