Package com.glyart.asql.spigot
Class ASQLSpigotScheduler<T extends org.bukkit.plugin.java.JavaPlugin>
- java.lang.Object
-
- com.glyart.asql.spigot.ASQLSpigotScheduler<T>
-
- Type Parameters:
T
- An existing JavaPlugin
- All Implemented Interfaces:
com.glyart.asql.common.context.ContextScheduler
public final class ASQLSpigotScheduler<T extends org.bukkit.plugin.java.JavaPlugin> extends Object implements com.glyart.asql.common.context.ContextScheduler
Represents a task scheduling behavior through a Spigot Context. There should be just one instance of ASQLSpigotScheduler per Spigot Context.
-
-
Constructor Summary
Constructors Constructor Description ASQLSpigotScheduler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
async(@NonNull Runnable runnable)
void
async(@NonNull Runnable runnable, long delay, long period)
void
sync(@NonNull Runnable runnable)
void
sync(@NonNull Runnable runnable, long delay, long period)
-
-
-
Method Detail
-
async
public void async(@NonNull @NonNull Runnable runnable, long delay, long period)
- Specified by:
async
in interfacecom.glyart.asql.common.context.ContextScheduler
-
async
public void async(@NonNull @NonNull Runnable runnable)
- Specified by:
async
in interfacecom.glyart.asql.common.context.ContextScheduler
-
sync
public void sync(@NonNull @NonNull Runnable runnable, long delay, long period)
- Specified by:
sync
in interfacecom.glyart.asql.common.context.ContextScheduler
-
sync
public void sync(@NonNull @NonNull Runnable runnable)
- Specified by:
sync
in interfacecom.glyart.asql.common.context.ContextScheduler
-
-