C# Class Expl.Itinerary.Quartz.ItineraryTriggerImpl

Quartz trigger class with Itinerary scheduling integration.
Inheritance: AbstractTrigger, IItineraryTrigger
Mostrar archivo Open project: spoulson/Itinerary

Public Methods

Method Description
ComputeFirstFireTimeUtc ( ICalendar cal ) : DateTimeOffset?
GetFireTimeAfter ( DateTimeOffset afterTime ) : DateTimeOffset?
GetMayFireAgain ( ) : bool

Determines whether or not the ItineraryTriggerImpl will occur again.

GetNextFireTimeUtc ( ) : DateTimeOffset?
GetPreviousFireTimeUtc ( ) : DateTimeOffset?
GetScheduleBuilder ( ) : IScheduleBuilder
ItineraryTriggerImpl ( ISchedule schedule ) : System
ItineraryTriggerImpl ( ISchedule schedule, System.DateTime startTimeUtc ) : System
SetNextFireTimeUtc ( DateTimeOffset nextFireTime ) : void
SetPreviousFireTimeUtc ( DateTimeOffset previousFireTime ) : void
Triggered ( ICalendar cal ) : void

Called when the IScheduler has decided to 'fire' the trigger (Execute the associated IJob), in order to give the Trigger a chance to update itself for its next triggering (if any).

UpdateAfterMisfire ( ICalendar cal ) : void

Updates the ItineraryTriggerImpl's state based on the MisfireInstruction value that was selected when the ItineraryTriggerImpl was created.

UpdateWithNewCalendar ( ICalendar cal, System.TimeSpan misfireThreshold ) : void

Updates the instance with new calendar.

Protected Methods

Method Description
ValidateMisfireInstruction ( int misfireInstruction ) : bool

Validates the misfire instruction.

Method Details

ComputeFirstFireTimeUtc() public method

public ComputeFirstFireTimeUtc ( ICalendar cal ) : DateTimeOffset?
cal ICalendar
return DateTimeOffset?

GetFireTimeAfter() public method

public GetFireTimeAfter ( DateTimeOffset afterTime ) : DateTimeOffset?
afterTime DateTimeOffset
return DateTimeOffset?

GetMayFireAgain() public method

Determines whether or not the ItineraryTriggerImpl will occur again.
public GetMayFireAgain ( ) : bool
return bool

GetNextFireTimeUtc() public method

public GetNextFireTimeUtc ( ) : DateTimeOffset?
return DateTimeOffset?

GetPreviousFireTimeUtc() public method

public GetPreviousFireTimeUtc ( ) : DateTimeOffset?
return DateTimeOffset?

GetScheduleBuilder() public method

public GetScheduleBuilder ( ) : IScheduleBuilder
return IScheduleBuilder

ItineraryTriggerImpl() public method

public ItineraryTriggerImpl ( ISchedule schedule ) : System
schedule ISchedule
return System

ItineraryTriggerImpl() public method

public ItineraryTriggerImpl ( ISchedule schedule, System.DateTime startTimeUtc ) : System
schedule ISchedule
startTimeUtc System.DateTime
return System

SetNextFireTimeUtc() public method

public SetNextFireTimeUtc ( DateTimeOffset nextFireTime ) : void
nextFireTime DateTimeOffset
return void

SetPreviousFireTimeUtc() public method

public SetPreviousFireTimeUtc ( DateTimeOffset previousFireTime ) : void
previousFireTime DateTimeOffset
return void

Triggered() public method

Called when the IScheduler has decided to 'fire' the trigger (Execute the associated IJob), in order to give the Trigger a chance to update itself for its next triggering (if any).
public Triggered ( ICalendar cal ) : void
cal ICalendar
return void

UpdateAfterMisfire() public method

Updates the ItineraryTriggerImpl's state based on the MisfireInstruction value that was selected when the ItineraryTriggerImpl was created.
public UpdateAfterMisfire ( ICalendar cal ) : void
cal ICalendar
return void

UpdateWithNewCalendar() public method

Updates the instance with new calendar.
public UpdateWithNewCalendar ( ICalendar cal, System.TimeSpan misfireThreshold ) : void
cal ICalendar
misfireThreshold System.TimeSpan The misfire threshold.
return void

ValidateMisfireInstruction() protected method

Validates the misfire instruction.
protected ValidateMisfireInstruction ( int misfireInstruction ) : bool
misfireInstruction int The misfire instruction.
return bool