Annotation Type Periodic
Annotation placed on the payload class of a Schedule handled by
HandleSchedule
annotated methods. If this annotation is present the same payload will be rescheduled after handling using a given
delay in ms.-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionlongReturns the schedule delay in milliseconds. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanReturns true if this periodic schedule should be automatically started if it's not already active.booleanReturns true if the schedule should continue after an error.longReturns the initial schedule delay in milliseconds.Returns the id of the periodic schedule.
-
Element Details
-
value
long valueReturns the schedule delay in milliseconds. Must be positive.
-
-
-
autoStart
boolean autoStartReturns true if this periodic schedule should be automatically started if it's not already active. Defaults totrue.- Default:
- true
-
initialDelay
long initialDelayReturns the initial schedule delay in milliseconds. Only relevant whenautoStart()is true.- Default:
- 0L
-
continueOnError
boolean continueOnErrorReturns true if the schedule should continue after an error. Defaults totrue.- Default:
- true
-
scheduleId
String scheduleIdReturns the id of the periodic schedule. Defaults to the fully qualified name of the schedule class.- Default:
- ""
-