-
- All Implemented Interfaces:
public class SchedulerConfigurationThe SchedulerConfiguration for the SchedulerHandler.
-
-
Constructor Summary
Constructors Constructor Description SchedulerConfiguration(long executeEveryTick, Runnable runnable)Create a new SchedulerConfiguration for multiple runs. SchedulerConfiguration(long executeEveryTick, boolean runOnce, Runnable runnable)Create a new SchedulerConfiguration for multiple runs. SchedulerConfiguration(long executeEveryTick, boolean runOnce, Runnable runnable, boolean async)Create a new SchedulerConfiguration for multiple runs.
-
Method Summary
Modifier and Type Method Description voidexecuteTick(Long id)Its not recommended to use this function manually. -
-
Constructor Detail
-
SchedulerConfiguration
SchedulerConfiguration(long executeEveryTick, Runnable runnable)
Create a new SchedulerConfiguration for multiple runs.- Parameters:
executeEveryTick- Execute on every X tick.runnable- The runnable to be executed if the scheduler ticks.
-
SchedulerConfiguration
SchedulerConfiguration(long executeEveryTick, boolean runOnce, Runnable runnable)
Create a new SchedulerConfiguration for multiple runs.- Parameters:
executeEveryTick- Execute on every X tick.runOnce- Run only once?runnable- The runnable to be executed if the scheduler ticks.
-
SchedulerConfiguration
SchedulerConfiguration(long executeEveryTick, boolean runOnce, Runnable runnable, boolean async)
Create a new SchedulerConfiguration for multiple runs.- Parameters:
executeEveryTick- Execute on every X tick.runOnce- Run only once?runnable- The runnable to be executed if the scheduler ticks.async- Should it executed async?
-
-
Method Detail
-
executeTick
void executeTick(Long id)
Its not recommended to use this function manually. The function will be automatically called every tick from the SchedulerManager.
-
-
-
-