Class 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 Detail

      • DynamicReaderPool

        public DynamicReaderPool()
    • Method Detail

      • borrowXMLReader

        public XMLReader borrowXMLReader()
        Specified by:
        borrowXMLReader in interface org.smooks.api.delivery.ReaderPool
      • returnXMLReader

        public void returnXMLReader​(XMLReader xmlReader)
        Return an XMLReader instance to the reader pool associated with this ContentDelivery config instance.
        Specified by:
        returnXMLReader in interface org.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.
      • getProperties

        public Map<String,​String> getProperties()
        Specified by:
        getProperties in interface org.smooks.api.delivery.ReaderPool