Annotation Type Periodic
-
@Documented @Target({TYPE,METHOD}) @Retention(RUNTIME) @Inherited public @interface Periodic
Annotation placed on the payload class of a Schedule handled byHandleScheduleannotated methods. If this annotation is present the same payload will be rescheduled after handling using a given delay in ms.
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description longvalueReturns the schedule delay in milliseconds.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanautoStartReturns true if this periodic schedule should be automatically started if it's not already active.booleancontinueOnErrorReturns true if the schedule should continue after an error.longinitialDelayReturns the initial schedule delay in milliseconds.StringscheduleIdReturns the id of the periodic schedule.
-
-
-
-
initialDelay
long initialDelay
Returns the initial schedule delay in milliseconds. Only relevant whenautoStart()is true.- Default:
- 0L
-
-
-
scheduleId
String scheduleId
Returns the id of the periodic schedule. Defaults to the fully qualified name of the schedule class.- Default:
- ""
-
-