Class ThreadHandler

  • Direct Known Subclasses:
    DalThreadHandler

    public abstract class ThreadHandler
    extends Object
    A convenience class which can be used as a base class for when specific actions need to be done before or after a thread has run. cleaning up certain threadlocals.
    Author:
    mtaal
    • Constructor Detail

      • ThreadHandler

        public ThreadHandler()
    • Method Detail

      • run

        public void run()
        Run the thread, this method will call the protected methods doBefore, doAction and doFinal.
      • doFinal

        protected abstract void doFinal​(boolean errorOccured)