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
KeyTriggerKeyThe trigger's key.
JobKeyJobKeyThe key of the job the trigger fires.
StateStoredTriggerStateThe trigger's stored state.
NextFireTimeUtcDateTimeOffset?The next time the trigger will fire, if any.
TriggerTypestringThe 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
Key
The trigger's key.
public TriggerKey Key { get; init; }
Property Value
NextFireTimeUtc
The next time the trigger will fire, if any.
public DateTimeOffset? NextFireTimeUtc { get; init; }
Property Value
State
The trigger's stored state.
public StoredTriggerState State { get; init; }
Property Value
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; }