Class StargateQueuedAsyncTask

java.lang.Object
org.sgrewritten.stargate.thread.task.StargateTask
org.sgrewritten.stargate.thread.task.StargateQueuedAsyncTask
All Implemented Interfaces:
Runnable

public abstract class StargateQueuedAsyncTask extends StargateTask
Runs asynchronous tasks in a queue (an attempt to avoid race conditions, and probably better than not doing this)
  • Constructor Details

    • StargateQueuedAsyncTask

      protected StargateQueuedAsyncTask()
  • Method Details

    • runDelayed

      public void runDelayed(long delay)
      Specified by:
      runDelayed in class StargateTask
    • runNow

      public void runNow()
      Specified by:
      runNow in class StargateTask
    • runTaskTimer

      public void runTaskTimer(long period, long delay)
      Specified by:
      runTaskTimer in class StargateTask
    • disableAsyncQueue

      public static void disableAsyncQueue()
    • enableAsyncQueue

      public static void enableAsyncQueue()