Class ThreadHandler

  • All Implemented Interfaces:
    QueueHandler

    public class ThreadHandler
    extends Object
    implements QueueHandler
    This class handles threads for trackers.
    Author:
    Ahmed Owian
    • 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()