Package docking

Class TaskScheduler

  • All Implemented Interfaces:
    java.lang.Runnable

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Thread getCurrentThread()
      Get the currently running thread.
      boolean isBusy()
      Returns true if this task scheduler is running a task or has a pending task.
      void run()  
      void waitForCurrentTask()
      Blocks until the current task completes.
      • Methods inherited from class java.lang.Object

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

      • run

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

        public java.lang.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.