Package org.smooks.api.delivery
Interface ReaderPool
-
- All Known Implementing Classes:
DefaultReaderPool
,DynamicReaderPool
@ThreadSafe public interface ReaderPool
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description XMLReader
borrowXMLReader()
Gets anXMLReader
instance from the reader pool associated with this ContentDelivery config instance.Map<String,String>
getProperties()
Returns implementation-specificProperties
.void
returnXMLReader(XMLReader xmlReader)
Returns anXMLReader
instance to the reader pool associated with this ContentDelivery config instance.
-
-
-
Method Detail
-
borrowXMLReader
XMLReader borrowXMLReader()
Gets anXMLReader
instance from the reader pool associated with this ContentDelivery config instance.- Returns:
- An XMLReader instance if the pool is not empty, otherwise null
-
returnXMLReader
void returnXMLReader(XMLReader xmlReader)
Returns anXMLReader
instance to the reader pool associated with this ContentDelivery config instance.- Parameters:
xmlReader
- XMLReader instance to be returned
-
getProperties
Map<String,String> getProperties()
Returns implementation-specificProperties
.- Returns:
- Implementation-specific
Properties
ofthis
reader pool
-
-