Class TriggerHeader
- Namespace
- Quartz
- Assembly
- Quartz.dll
A trigger listing entry: everything a listing needs — including the state and execution group that previously required one extra round trip per trigger — without materializing the trigger or its JobDataMap.
public sealed record TriggerHeader : IEquatable<TriggerHeader>
- Inheritance
-
TriggerHeader
- Implements
- Inherited Members
Constructors
TriggerHeader(TriggerKey, JobKey, string?, string, TriggerState, DateTimeOffset, DateTimeOffset?, DateTimeOffset?, DateTimeOffset?, string?, int, string?, string?, int)
A trigger listing entry: everything a listing needs — including the state and execution group that previously required one extra round trip per trigger — without materializing the trigger or its JobDataMap.
public TriggerHeader(TriggerKey Key, JobKey JobKey, string? Description, string TriggerType, TriggerState State, DateTimeOffset StartTimeUtc, DateTimeOffset? EndTimeUtc, DateTimeOffset? NextFireTimeUtc, DateTimeOffset? PreviousFireTimeUtc, string? CalendarName, int Priority, string? ExecutionGroup, string? RetryPolicy, int RetryAttempt)
Parameters
KeyTriggerKeyThe trigger's key.
JobKeyJobKeyThe key of the job the trigger fires.
DescriptionstringThe trigger's description, if one was given.
TriggerTypestringThe store's trigger type discriminator, for example
"CRON"or"SIMPLE"— the value of theTRIGGER_TYPEcolumn, which is what GetHandledTriggerTypeDiscriminator() returns. It is a discriminator, not a type name, and so is deliberately not called one: contrast JobTypeName and JobTypeName, both of which carry a CLR type name that a type loader can resolve.StateTriggerStateThe trigger's current state.
StartTimeUtcDateTimeOffsetThe time the trigger's schedule comes into effect.
EndTimeUtcDateTimeOffset?The time the trigger's schedule ends, if bounded.
NextFireTimeUtcDateTimeOffset?The next time the trigger will fire, if any.
PreviousFireTimeUtcDateTimeOffset?The previous time the trigger fired, if any.
CalendarNamestringThe name of the calendar the trigger observes, if any.
PriorityintThe trigger's priority.
ExecutionGroupstringThe trigger's execution group, if any.
RetryPolicystringThe trigger's retry policy in its stored form, if it has one. A string rather than a RetryPolicy because a listing reports the column: a row whose policy a newer node wrote in a shape this one cannot read still has to list.
RetryAttemptintHow many times the occurrence currently being executed has already been retried;
0when it has not.
Properties
CalendarName
The name of the calendar the trigger observes, if any.
public string? CalendarName { get; init; }
Property Value
ContinuationCondition
The outcomes of that firing which release the wait, or null when the trigger waits for nothing.
public ContinuationCondition? ContinuationCondition { get; init; }
Property Value
ContinuesAfter
The trigger whose firing this one is waiting for, or null when it waits for nothing. Set while State is Awaiting, and on a continuation parked in Error because its parent was deleted. A released continuation waits for nothing — the release clears the parent — so it is null for one.
public TriggerKey? ContinuesAfter { get; init; }
Property Value
Remarks
An init property rather than a positional parameter, and the same goes for
ContinuationCondition: the record's constructor is a public signature that 4.0
promised not to change, so 4.2 adds beside it rather than to it.
- See Also
Description
The trigger's description, if one was given.
public string? Description { get; init; }
Property Value
EndTimeUtc
The time the trigger's schedule ends, if bounded.
public DateTimeOffset? EndTimeUtc { get; init; }
Property Value
ExecutionGroup
The trigger's execution group, if any.
public string? ExecutionGroup { get; init; }
Property Value
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
OverlapPolicy
What the trigger does when one of its firings comes due while an earlier one is still running.
public OverlapPolicy OverlapPolicy { get; init; }
Property Value
Remarks
An init property for the reason ContinuesAfter is one.
- See Also
Pause
Why the trigger is paused, who asked, and when — the record on the trigger itself — or null when it is not paused or its pause recorded nothing.
public PauseInfo? Pause { get; init; }
Property Value
Remarks
A trigger stored into a group that was already paused has no record of its own, and its listing
entry says so; GetTriggerPause(TriggerKey, CancellationToken) answers the group's record for it. An
init property for the reason ContinuesAfter is one.
PreviousFireTimeUtc
The previous time the trigger fired, if any.
public DateTimeOffset? PreviousFireTimeUtc { get; init; }
Property Value
Priority
The trigger's priority.
public int Priority { get; init; }
Property Value
RetryAttempt
How many times the occurrence currently being executed has already been
retried; 0 when it has not.
public int RetryAttempt { get; init; }
Property Value
RetryPolicy
The trigger's retry policy in its stored form, if it has one. A string rather than a RetryPolicy because a listing reports the column: a row whose policy a newer node wrote in a shape this one cannot read still has to list.
public string? RetryPolicy { get; init; }
Property Value
StartTimeUtc
The time the trigger's schedule comes into effect.
public DateTimeOffset StartTimeUtc { get; init; }
Property Value
State
The trigger's current state.
public TriggerState State { get; init; }
Property Value
TriggerType
The store's trigger type discriminator, for example "CRON" or
"SIMPLE" — the value of the TRIGGER_TYPE column, which is what
GetHandledTriggerTypeDiscriminator()
returns. It is a discriminator, not a type name, and so is deliberately not called one:
contrast JobTypeName and
JobTypeName, both of which carry a CLR
type name that a type loader can resolve.
public string TriggerType { get; init; }