tech.simter.scheduling.quartz.CronScheduled Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simter-scheduling Show documentation
Show all versions of simter-scheduling Show documentation
Simter Spring-Scheduling Extension
The newest version!
package tech.simter.scheduling.quartz;
import org.quartz.CronTrigger;
import java.lang.annotation.*;
/**
* The Annotation for config the quartz {@link CronTrigger}.
*
* The {@link CronScheduled#cron()} must be a valid cron expression.
*/
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface CronScheduled {
/**
* The quartz trigger cron expression.
*
* @return The Cron expression
*/
String cron();
/**
* The job name.
*
* @return The job name
*/
String name() default "";
/**
* The job group.
*
* @return The job group
*/
String group() default "SIMTER";
}