Class ReportingThread

java.lang.Object
java.lang.Thread
se.datadosen.util.ReportingThread
All Implemented Interfaces:
Runnable

public class ReportingThread extends Thread
Thread that can report if the execution went fine or if an exception occured
  • Field Details

  • Constructor Details

    • ReportingThread

      public ReportingThread(String name)
  • Method Details

    • isDone

      public boolean isDone()
    • setDone

      public void setDone()
    • getThrowable

      public Throwable getThrowable()
    • setThrowable

      protected void setThrowable(Throwable t)
    • finishedNormally

      public boolean finishedNormally()
    • run

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

      protected void runWithTry() throws Throwable
      Throws:
      Throwable