org.exist.util
Class XMLReaderPool
java.lang.Object
org.apache.commons.pool.BaseObjectPool
org.apache.commons.pool.impl.StackObjectPool
org.exist.util.XMLReaderPool
- All Implemented Interfaces:
- org.apache.commons.pool.ObjectPool
- public class XMLReaderPool
- extends org.apache.commons.pool.impl.StackObjectPool
Maintains a pool of XMLReader objects. The pool is available through
BrokerPool.getParserPool()
.
- Author:
- wolf
Constructor Summary |
XMLReaderPool(org.apache.commons.pool.PoolableObjectFactory factory,
int maxIdle,
int initIdleCapacity)
|
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 |
XMLReaderPool
public XMLReaderPool(org.apache.commons.pool.PoolableObjectFactory factory,
int maxIdle,
int initIdleCapacity)
- Parameters:
factory
- maxIdle
- initIdleCapacity
-
borrowXMLReader
public org.xml.sax.XMLReader borrowXMLReader()
returnXMLReader
public void returnXMLReader(org.xml.sax.XMLReader reader)
Copyright (C) Wolfgang Meier. All rights reserved.