Class DefaultReaderPool

  • All Implemented Interfaces:
    org.smooks.api.delivery.ReaderPool

    public class DefaultReaderPool
    extends Object
    implements org.smooks.api.delivery.ReaderPool
    • Constructor Detail

      • DefaultReaderPool

        public DefaultReaderPool​(int maxReaderPoolSize)
    • 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 instance is left to the GC (i.e. lost).
      • getProperties

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

        public int getMaxReaderPoolSize()