Class Scheduler

java.lang.Object
java.lang.Thread
org.bgerp.app.exec.scheduler.Scheduler
All Implemented Interfaces:
Runnable

public class Scheduler extends Thread
Scheduler for running single or periodical tasks.
  • Method Details

    • getInstance

      public static final Scheduler getInstance()
    • run

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

      public void runTask(TaskConfig taskConfig, boolean wait) throws Exception
      Throws:
      Exception
    • getRunningTaskCount

      public int getRunningTaskCount()