Table of Contents

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

Key TriggerKey

The trigger's key.

JobKey JobKey

The key of the job the trigger fires.

Description string

The trigger's description, if one was given.

TriggerType string

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.

State TriggerState

The trigger's current state.

StartTimeUtc DateTimeOffset

The time the trigger's schedule comes into effect.

EndTimeUtc DateTimeOffset?

The time the trigger's schedule ends, if bounded.

NextFireTimeUtc DateTimeOffset?

The next time the trigger will fire, if any.

PreviousFireTimeUtc DateTimeOffset?

The previous time the trigger fired, if any.

CalendarName string

The name of the calendar the trigger observes, if any.

Priority int

The trigger's priority.

ExecutionGroup string

The trigger's execution group, if any.

RetryPolicy string

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.

RetryAttempt int

How many times the occurrence currently being executed has already been retried; 0 when it has not.

Properties

CalendarName

The name of the calendar the trigger observes, if any.

public string? CalendarName { get; init; }

Property Value

string

Description

The trigger's description, if one was given.

public string? Description { get; init; }

Property Value

string

EndTimeUtc

The time the trigger's schedule ends, if bounded.

public DateTimeOffset? EndTimeUtc { get; init; }

Property Value

DateTimeOffset?

ExecutionGroup

The trigger's execution group, if any.

public string? ExecutionGroup { get; init; }

Property Value

string

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?

PreviousFireTimeUtc

The previous time the trigger fired, if any.

public DateTimeOffset? PreviousFireTimeUtc { get; init; }

Property Value

DateTimeOffset?

Priority

The trigger's priority.

public int Priority { get; init; }

Property Value

int

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

int

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

string

StartTimeUtc

The time the trigger's schedule comes into effect.

public DateTimeOffset StartTimeUtc { get; init; }

Property Value

DateTimeOffset

State

The trigger's current state.

public TriggerState State { get; init; }

Property Value

TriggerState

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

Property Value

string