Grasscutter/src/main/java/emu/grasscutter/task/Task.java

26 lines
959 B
Java
Raw Normal View History

2022-04-27 06:04:21 +08:00
package emu.grasscutter.task;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
2022-04-27 07:08:33 +08:00
/*
* So what is cron expression?
* Check this: https://en.wikipedia.org/wiki/Cron
# minute (0 - 59)
# hour (0 - 23)
# day of the month (1 - 31)
# month (1 - 12)
# day of the week (0 - 6) (Sunday to Saturday;
# 7 is also Sunday on some systems)
#
#
# * * * * *
* */
2022-04-27 06:04:21 +08:00
@Retention(RetentionPolicy.RUNTIME)
public @interface Task {
String taskName() default "NO_NAME";
String taskCronExpression() default "0 0 0 0 0 ?";
String triggerName() default "NO_NAME";
}