io.mangoo.annotations.Run Maven / Gradle / Ivy
The newest version!
package io.mangoo.annotations;
import java.lang.annotation.*;
@Target({ElementType.METHOD, ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Run {
/**
* Schedules a method either at a given rate (e.g. Every 1s, Every 5m, Every 8h, Every 1d)
* or a given UNIX cron (e.g. 0/1 * * * *)
*
* @see https://en.wikipedia.org/wiki/Cron
*
* @return Rate or UNIX cron for execution
*/
String at();
}