Table of Contents

Class StoredTriggerHeader

Namespace
Quartz.Impl.AdoJobStore
Assembly
Quartz.dll

The parts of a stored trigger row a state transition decides on: the trigger's stored state, the job it fires, when it fires next, and which type table holds its schedule.

public sealed record StoredTriggerHeader : IEquatable<StoredTriggerHeader>
Inheritance
StoredTriggerHeader
Implements
Inherited Members

Remarks

The storage-side counterpart of TriggerHeader, which is what a listing reports. This one speaks StoredTriggerState rather than TriggerState, because resuming a trigger has to tell PausedBlocked from Paused and the reported state does not.

Constructors

StoredTriggerHeader(TriggerKey, JobKey, StoredTriggerState, DateTimeOffset?, string)

The parts of a stored trigger row a state transition decides on: the trigger's stored state, the job it fires, when it fires next, and which type table holds its schedule.

public StoredTriggerHeader(TriggerKey Key, JobKey JobKey, StoredTriggerState State, DateTimeOffset? NextFireTimeUtc, string TriggerType)

Parameters

Key TriggerKey

The trigger's key.

JobKey JobKey

The key of the job the trigger fires.

State StoredTriggerState

The trigger's stored state.

NextFireTimeUtc DateTimeOffset?

The next time the trigger will fire, if any.

TriggerType string

The discriminator naming the type table the trigger's schedule lives in. Carried here because the write side needs it, and reading it off the row the state came from costs nothing where asking for it separately cost a round trip.

Remarks

The storage-side counterpart of TriggerHeader, which is what a listing reports. This one speaks StoredTriggerState rather than TriggerState, because resuming a trigger has to tell PausedBlocked from Paused and the reported state does not.

Properties

JobKey

The key of the job the trigger fires.

public JobKey JobKey { get; init; }

Property Value

JobKey

Key

The trigger's key.

public TriggerKey Key { get; init; }

Property Value

TriggerKey

NextFireTimeUtc

The next time the trigger will fire, if any.

public DateTimeOffset? NextFireTimeUtc { get; init; }

Property Value

DateTimeOffset?

State

The trigger's stored state.

public StoredTriggerState State { get; init; }

Property Value

StoredTriggerState

TriggerType

The discriminator naming the type table the trigger's schedule lives in. Carried here because the write side needs it, and reading it off the row the state came from costs nothing where asking for it separately cost a round trip.

public string TriggerType { get; init; }

Property Value

string