Class ThreadHandler

  • All Implemented Interfaces:
    QueueHandler

    public class ThreadHandler
    extends java.lang.Object
    implements QueueHandler
    This class handles threads for trackers.
    Author:
    Ahmed Owian
    • Constructor Summary

      Constructors 
      Constructor Description
      ThreadHandler​(java.util.Properties p, java.lang.String coreName, java.lang.String trackerName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.alfresco.solr.tracker.AbstractWorkerRunnable peekHeadReindexWorker()
      Read-safe method to peek at the head of the queue
      void removeFromQueueAndProdHead​(org.alfresco.solr.tracker.AbstractWorkerRunnable job)
      Removes the job from the queue and notifies the HEAD
      void scheduleTask​(org.alfresco.solr.tracker.AbstractWorkerRunnable awr)  
      void shutDownThreadPool()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ThreadHandler

        public ThreadHandler​(java.util.Properties p,
                             java.lang.String coreName,
                             java.lang.String trackerName)
    • Method Detail

      • scheduleTask

        public void scheduleTask​(org.alfresco.solr.tracker.AbstractWorkerRunnable awr)
      • removeFromQueueAndProdHead

        public void removeFromQueueAndProdHead​(org.alfresco.solr.tracker.AbstractWorkerRunnable job)
        Removes the job from the queue and notifies the HEAD
        Specified by:
        removeFromQueueAndProdHead in interface QueueHandler
      • peekHeadReindexWorker

        public org.alfresco.solr.tracker.AbstractWorkerRunnable peekHeadReindexWorker()
        Read-safe method to peek at the head of the queue
      • shutDownThreadPool

        public void shutDownThreadPool()