Package docking

Class TaskScheduler

java.lang.Object
docking.TaskScheduler
All Implemented Interfaces:
Runnable

public class TaskScheduler extends Object implements Runnable
Schedules tasks to be run in the DialogComponentProvider.
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • getCurrentThread

      public Thread getCurrentThread()
      Get the currently running thread.
      Returns:
      null if no thread is running.
    • waitForCurrentTask

      public void waitForCurrentTask()
      Blocks until the current task completes.
    • isBusy

      public boolean isBusy()
      Returns true if this task scheduler is running a task or has a pending task.
      Returns:
      true if this task scheduler is running a task or has a pending task.