Class Schedule
- java.lang.Object
-
- io.serverlessworkflow.api.schedule.Schedule
-
- All Implemented Interfaces:
Serializable
public class Schedule extends Object implements Serializable
Start state schedule definition- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Schedule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CrongetCron()Schedule cron definitionStringgetInterval()Time interval (ISO 8601 format) describing when the workflow starting state is activeStringgetTimezone()Timezone name used to evaluate the cron expression.voidsetCron(Cron cron)Schedule cron definitionvoidsetInterval(String interval)Time interval (ISO 8601 format) describing when the workflow starting state is activevoidsetTimezone(String timezone)Timezone name used to evaluate the cron expression.SchedulewithCron(Cron cron)SchedulewithInterval(String interval)SchedulewithTimezone(String timezone)
-
-
-
Method Detail
-
getInterval
public String getInterval()
Time interval (ISO 8601 format) describing when the workflow starting state is active
-
setInterval
public void setInterval(String interval)
Time interval (ISO 8601 format) describing when the workflow starting state is active
-
getCron
public Cron getCron()
Schedule cron definition
-
setCron
public void setCron(Cron cron)
Schedule cron definition
-
getTimezone
public String getTimezone()
Timezone name used to evaluate the cron expression. Not used for interval as timezone can be specified there directly. If not specified, should default to local machine timezone.
-
setTimezone
public void setTimezone(String timezone)
Timezone name used to evaluate the cron expression. Not used for interval as timezone can be specified there directly. If not specified, should default to local machine timezone.
-
-