Class SchedulerDefinition

java.lang.Object
org.chenile.scheduler.SchedulerDefinition

public class SchedulerDefinition extends Object
One schedule: fire eventId on cronExpression. The same model comes from JSON files, from code and (with chenile-scheduler-db) from the database.
  • Field Details

    • id

      public String id
      Stable identity; also the Quartz job and trigger key.
    • name

      public String name
      For people and the console.
    • cronExpression

      public String cronExpression
      Quartz syntax, with seconds: 0 0 2 * * ? is 2 am every day.
    • timezone

      public String timezone
      The zone the cron expression is read in.
    • eventId

      public String eventId
      The Chenile event to fire. Operations subscribe to it.
    • payload

      public String payload
      The event body as JSON text; converted to each subscriber's body type.
    • headers

      public Map<String,String> headers
      Extra headers for the event. Every name must start with x-.
    • tenant

      public String tenant
      The tenant the event fires as.
    • enabled

      public boolean enabled
      A disabled definition is kept but not scheduled.
    • description

      public String description
  • Constructor Details

    • SchedulerDefinition

      public SchedulerDefinition()