Class StargateQueuedAsyncTask
java.lang.Object
org.sgrewritten.stargate.thread.task.StargateTask
org.sgrewritten.stargate.thread.task.StargateQueuedAsyncTask
- All Implemented Interfaces:
Runnable
Runs asynchronous tasks in a queue (an attempt to avoid race conditions, and probably better than not doing this)
-
Field Summary
Fields inherited from class org.sgrewritten.stargate.thread.task.StargateTask
USING_FOLIA
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
void
runDelayed
(long delay) void
runNow()
void
runTaskTimer
(long period, long delay) Methods inherited from class org.sgrewritten.stargate.thread.task.StargateTask
cancel, forceRunAllTasks, registerBukkitTask, registerFoliaTask, registerTask, runTask, runTask, setRepeatable
-
Constructor Details
-
StargateQueuedAsyncTask
protected StargateQueuedAsyncTask()
-
-
Method Details
-
runDelayed
public void runDelayed(long delay) - Specified by:
runDelayed
in classStargateTask
-
runNow
public void runNow()- Specified by:
runNow
in classStargateTask
-
runTaskTimer
public void runTaskTimer(long period, long delay) - Specified by:
runTaskTimer
in classStargateTask
-
disableAsyncQueue
public static void disableAsyncQueue() -
enableAsyncQueue
public static void enableAsyncQueue()
-