Class CronEndpointOptions

Assembly: redb.Route.Quartz.dll

Cron endpoint options.

public class CronEndpointOptions : EndpointOptions

Inheritance

Object→EndpointOptions→CronEndpointOptions

Inherited Members

Properties

CustomCalendar

Name of an ICalendar in the route context registry to use for exclusions.

[RegistryReference(typeof(ICalendar))]
public string? CustomCalendar { get; set; }

DeleteJob

Delete the job when the route stops (default: true).

public bool DeleteJob { get; set; }

DurableJob

Keep the job in the scheduler even if no triggers reference it (default: false).

public bool DurableJob { get; set; }

EndAt

Trigger end date (ISO 8601 format). If not set, runs indefinitely.

public string? EndAt { get; set; }

GroupName

Quartz group name. Parsed from URI path or defaults to "redb".

public string GroupName { get; set; }

JobName

Quartz job/trigger name. Parsed from URI path.

public string JobName { get; set; }

MisfireInstruction

Misfire handling strategy (default: trigger-type-specific default).

public QuartzMisfirePolicy MisfireInstruction { get; set; }

PauseJob

Pause the trigger when the route stops instead of deleting (default: false).

public bool PauseJob { get; set; }

PrefixJobNameWithEndpointId

Whether to prefix the job name with the endpoint ID (default: false).

public bool PrefixJobNameWithEndpointId { get; set; }

RecoverableJob

Re-execute the job on failover/recovery (default: false).

public bool RecoverableJob { get; set; }

Schedule

Cron expression (Quartz format, 6-7 fields).

public string Schedule { get; set; }

StartAt

Trigger start date (ISO 8601 format). If not set, starts immediately.

public string? StartAt { get; set; }

Stateful

Use PersistJobDataAfterExecution + DisallowConcurrentExecution (default: false).

public bool Stateful { get; set; }

Threads

Maximum concurrent fires (default: 1).

public int Threads { get; set; }

TimeZone

Time zone for the cron trigger (IANA ID, e.g. "Europe/Moscow"). Default: local.

public string? TimeZone { get; set; }

TriggerStartDelay

Delay in ms before the first trigger fire (default: 500).

public long TriggerStartDelay { get; set; }

Methods

Validate()

Validates required parameters and constraints. Called after BindFromUri.

public override void Validate()