Class ExecQueues

java.lang.Object
org.luwrain.pim.ExecQueues
All Implemented Interfaces:
Runnable

public final class ExecQueues extends Object implements Runnable
  • Constructor Details

    • ExecQueues

      public ExecQueues()
  • Method Details

    • enqueue

      public void enqueue(FutureTask task, boolean highPriority)
    • enqueueHighPriority

      public void enqueueHighPriority(FutureTask task)
    • enqueueLowPriority

      public void enqueueLowPriority(FutureTask task)
    • exec

      public <T> T exec(FutureTask<T> task, boolean highPriority) throws Exception
      Throws:
      Exception
    • execHighPriority

      public <T> T execHighPriority(FutureTask<T> task) throws Exception
      Throws:
      Exception
    • execLowPriority

      public <T> T execLowPriority(FutureTask<T> task) throws Exception
      Throws:
      Exception
    • start

      public void start()
    • cancel

      public void cancel()
    • run

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