Package org.smooks.engine.delivery
Class DynamicReaderPool
- java.lang.Object
-
- org.smooks.engine.delivery.DynamicReaderPool
-
- All Implemented Interfaces:
org.smooks.api.delivery.ReaderPool
public class DynamicReaderPool extends Object implements org.smooks.api.delivery.ReaderPool
A pool of readers without an upper bound which means that it grows on-demand.
-
-
Constructor Summary
Constructors Constructor Description DynamicReaderPool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XMLReaderborrowXMLReader()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 pool is re-sized to accommodate the new reader.
-
-