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
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
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; }