Package org.smooks.engine.delivery
Class DefaultReaderPool
- java.lang.Object
-
- org.smooks.engine.delivery.DefaultReaderPool
-
- All Implemented Interfaces:
org.smooks.api.delivery.ReaderPool
public class DefaultReaderPool extends Object implements org.smooks.api.delivery.ReaderPool
-
-
Constructor Summary
Constructors Constructor Description DefaultReaderPool(int maxReaderPoolSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XMLReaderborrowXMLReader()intgetMaxReaderPoolSize()Map<String,String>getProperties()voidreturnXMLReader(XMLReader xmlReader)Return anXMLReaderinstance to the reader pool associated with this ContentDelivery config instance.
-
-
-
Method Detail
-
borrowXMLReader
public XMLReader borrowXMLReader()
- Specified by:
borrowXMLReaderin interfaceorg.smooks.api.delivery.ReaderPool
-
returnXMLReader
public void returnXMLReader(XMLReader xmlReader)
Return anXMLReaderinstance to the reader pool associated with this ContentDelivery config instance.- Specified by:
returnXMLReaderin interfaceorg.smooks.api.delivery.ReaderPool- Parameters:
xmlReader- The XMLReader instance to be returned. If the pool is full, the instance is left to the GC (i.e. lost).
-
getProperties
public Map<String,String> getProperties()
- Specified by:
getPropertiesin interfaceorg.smooks.api.delivery.ReaderPool
-
getMaxReaderPoolSize
public int getMaxReaderPoolSize()
-
-