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 Cron
getCron()
Schedule cron definitionString
getInterval()
Time interval (ISO 8601 format) describing when the workflow starting state is activeString
getTimezone()
Timezone name used to evaluate the cron expression.void
setCron(Cron cron)
Schedule cron definitionvoid
setInterval(String interval)
Time interval (ISO 8601 format) describing when the workflow starting state is activevoid
setTimezone(String timezone)
Timezone name used to evaluate the cron expression.Schedule
withCron(Cron cron)
Schedule
withInterval(String interval)
Schedule
withTimezone(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.
-
-