Package me.scolastico.tools.handler
Class SchedulerHandler
- java.lang.Object
-
- me.scolastico.tools.handler.SchedulerHandler
-
public class SchedulerHandler extends java.lang.Object
SchedulerHandler for easy scheduling of tasks!
-
-
Constructor Summary
Constructors Constructor Description SchedulerHandler()
-
Method Summary
Modifier and Type Method Description static void
enable()
Enable the SchedulerHandler.static long
registerTask(SchedulerConfiguration configuration)
Register your SchedulerConfiguration and enable it for automatic scheduling.static void
removeConfiguration(long id)
Remove a SchedulerConfiguration so it wont run again.
-
-
-
Method Detail
-
enable
public static void enable()
Enable the SchedulerHandler.
-
registerTask
public static long registerTask(SchedulerConfiguration configuration)
Register your SchedulerConfiguration and enable it for automatic scheduling.- Parameters:
configuration
- Your SchedulerConfiguration to register- Returns:
- The id of the configuration to remove it again if wanted.
-
removeConfiguration
public static void removeConfiguration(long id)
Remove a SchedulerConfiguration so it wont run again.- Parameters:
id
- The id of the ScheduleConfiguration to remove.
-
-