Package top.focess.qq.api.schedule
Class Schedulers
- java.lang.Object
-
- top.focess.qq.api.schedule.Schedulers
-
public class Schedulers extends Object
Used to create Scheduler. The scheduler factory.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidclose(Plugin plugin)Close all the schedulers belonging to the pluginstatic booleancloseAll()Close all the schedulersstatic SchedulernewFocessScheduler(@NotNull Plugin plugin)New a FocessSchedulerstatic SchedulernewThreadPoolScheduler(@NotNull Plugin plugin, int poolSize)New a ThreadPoolScheduler
-
-
-
Method Detail
-
newFocessScheduler
public static Scheduler newFocessScheduler(@NotNull @NotNull Plugin plugin)
New a FocessScheduler- Parameters:
plugin- the plugin- Returns:
- a FocessScheduler
-
newThreadPoolScheduler
public static Scheduler newThreadPoolScheduler(@NotNull @NotNull Plugin plugin, int poolSize)
New a ThreadPoolScheduler- Parameters:
plugin- the pluginpoolSize- the thread pool size- Returns:
- a ThreadPoolScheduler
-
close
public static void close(Plugin plugin)
Close all the schedulers belonging to the plugin- Parameters:
plugin- the plugin
-
closeAll
public static boolean closeAll()
Close all the schedulers- Returns:
- true if there are some schedulers not belonging to MainPlugin not been closed, false otherwise
-
-