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:
- ObjectPool
public class XMLReaderPool
- extends StackObjectPool
Maintains a pool of XMLReader objects. The pool is available through
BrokerPool.getParserPool()
.
- Author:
- wolf
XMLReaderPool
public XMLReaderPool(Configuration config,
PoolableObjectFactory factory,
int maxIdle,
int initIdleCapacity)
- Parameters:
factory
- maxIdle
- initIdleCapacity
-
borrowXMLReader
public XMLReader borrowXMLReader()
returnXMLReader
public void returnXMLReader(XMLReader reader)
Copyright (C) Wolfgang Meier. All rights reserved.