Class CronBuilder

Assembly: redb.Route.Quartz.dll

Fluent builder for Cron endpoint URIs. Scheme: cron.

public sealed class CronBuilder

Inheritance

Object→CronBuilder

Methods

Build()

public string Build()

CustomCalendar(string)

Reference to an ICalendar in the route context registry.

public CronBuilder CustomCalendar(string calendarName)

DeleteJob(bool)

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

public CronBuilder DeleteJob(bool value = true)

DurableJob(bool)

Keep the job even if no triggers reference it.

public CronBuilder DurableJob(bool value = true)

EndAt(DateTimeOffset)

Trigger end date.

public CronBuilder EndAt(DateTimeOffset date)

EndAt(string)

Trigger end date (ISO 8601).

public CronBuilder EndAt(string date)

MisfireInstruction(QuartzMisfirePolicy)

Misfire handling strategy.

public CronBuilder MisfireInstruction(QuartzMisfirePolicy policy)

PauseJob(bool)

Pause the trigger on route stop instead of deleting.

public CronBuilder PauseJob(bool value = true)

PrefixJobNameWithEndpointId(bool)

Prefix the job name with the endpoint ID.

public CronBuilder PrefixJobNameWithEndpointId(bool value = true)

Recoverable(bool)

Re-execute the job on failover/recovery.

public CronBuilder Recoverable(bool value = true)

StartAt(DateTimeOffset)

Trigger start date.

public CronBuilder StartAt(DateTimeOffset date)

StartAt(string)

Trigger start date (ISO 8601).

public CronBuilder StartAt(string date)

Stateful(bool)

PersistJobDataAfterExecution + DisallowConcurrentExecution.

public CronBuilder Stateful(bool value = true)

Threads(IExpression)

Threads from an expression.

public CronBuilder Threads(IExpression count)

Threads(int)

Max concurrent fires. Default 1.

public CronBuilder Threads(int count)

TimeZone(string)

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

public CronBuilder TimeZone(string tz)

ToString()

Returns a string that represents the current object.

public override string ToString()

TriggerStartDelay(long)

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

public CronBuilder TriggerStartDelay(long ms)