Class ExtentIndexerListener

  • All Implemented Interfaces:
    IndexerListener, Configurable, java.lang.Runnable

    public class ExtentIndexerListener
    extends ReliableIndexerListener
    ExtentIndexerListener is an extension of the ReliableIndexerListener. It populates the ExtentSummary table with viable products. This listener takes an ExtentIndex for querying and table updates:
    index
    (Required) the ExtentIndex used for querying and updates
    • Constructor Detail

      • ExtentIndexerListener

        public ExtentIndexerListener()
    • Method Detail

      • onBeforeProcessThreadStart

        protected void onBeforeProcessThreadStart()
                                           throws java.lang.Exception
        Loads the last index id in the extent table before the listener has to use it
        Overrides:
        onBeforeProcessThreadStart in class ReliableIndexerListener
        Throws:
        java.lang.Exception - if ExtentIndex can't do database transaction
      • processProduct

        public void processProduct​(ProductSummary product)
                            throws java.lang.Exception
        Hands product to index to be added to table
        Overrides:
        processProduct in class ReliableIndexerListener
        Parameters:
        product - the product to be added
        Throws:
        java.lang.Exception - if ExtentIndex can't do database transaction