Class AbstractWorker


  • public abstract class AbstractWorker
    extends java.lang.Object
    Synchronous Tracking Worker.
    Author:
    aborroy
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static org.slf4j.Logger LOGGER  
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractWorker()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract void doWork()  
      protected abstract void onFail​(java.lang.Throwable failCausedBy)  
      void run()  
      • Methods inherited from class java.lang.Object

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

      • LOGGER

        protected static final org.slf4j.Logger LOGGER
    • Constructor Detail

      • AbstractWorker

        public AbstractWorker()
    • Method Detail

      • run

        public void run()
      • doWork

        protected abstract void doWork()
                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • onFail

        protected abstract void onFail​(java.lang.Throwable failCausedBy)