Class WorkerThread

  • All Implemented Interfaces:
    Runnable

    public abstract class WorkerThread
    extends Thread
    Created: Apr 21, 2009 9:02:57 PM
    Author:
    Artur Hefczyc
    • Field Detail

      • log

        protected static final Logger log
    • Constructor Detail

      • WorkerThread

        public WorkerThread()
    • Method Detail

      • getNewInstance

        public abstract WorkerThread getNewInstance()
      • process

        public abstract void process​(QueueItem item)
      • getAverageProcessingTime

        public long getAverageProcessingTime()
      • getRunsCounter

        public long getRunsCounter()
      • offer

        public boolean offer​(QueueItem item)
      • run

        public void run()
        Specified by:
        run in interface Runnable
        Overrides:
        run in class Thread
      • setQueueMaxSize

        public void setQueueMaxSize​(int maxSize)
      • size

        public int size()
      • shutdown

        public void shutdown()