SimpleScheduleBuilder Class

Quartz.NET 3.0 API Documentation
SimpleScheduleBuilder is a IScheduleBuilder that defines strict/literal interval-based schedules for ITriggers.
Inheritance Hierarchy

SystemObject
  QuartzScheduleBuilderISimpleTrigger
    QuartzSimpleScheduleBuilder

Namespace:  Quartz
Assembly:  Quartz (in Quartz.dll) Version: 3.0.0
Syntax

C#
public class SimpleScheduleBuilder : ScheduleBuilder<ISimpleTrigger>

The SimpleScheduleBuilder type exposes the following members.

Constructors

  NameDescription
Protected methodSimpleScheduleBuilder
Initializes a new instance of the SimpleScheduleBuilder class
Top
Methods

  NameDescription
Public methodBuild
Build the actual Trigger -- NOT intended to be invoked by end users, but will rather be invoked by a TriggerBuilder which this ScheduleBuilder is given to.
(Overrides ScheduleBuilderTBuild.)
Public methodStatic memberCreate
Create a SimpleScheduleBuilder.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRepeatForever
Specify that the trigger will repeat indefinitely.
Public methodStatic memberRepeatHourlyForever
Create a SimpleScheduleBuilder set to repeat forever with a 1 hour interval.
Public methodStatic memberRepeatHourlyForever(Int32)
Create a SimpleScheduleBuilder set to repeat forever with an interval of the given number of hours.
Public methodStatic memberRepeatHourlyForTotalCount(Int32)
Create a SimpleScheduleBuilder set to repeat the given number of times - 1 with a 1 hour interval.
Public methodStatic memberRepeatHourlyForTotalCount(Int32, Int32)
Create a SimpleScheduleBuilder set to repeat the given number of times - 1 with an interval of the given number of hours.
Public methodStatic memberRepeatMinutelyForever
Create a SimpleScheduleBuilder set to repeat forever with a 1 minute interval.
Public methodStatic memberRepeatMinutelyForever(Int32)
Create a SimpleScheduleBuilder set to repeat forever with an interval of the given number of minutes.
Public methodStatic memberRepeatMinutelyForTotalCount(Int32)
Create a SimpleScheduleBuilder set to repeat the given number of times - 1 with a 1 minute interval.
Public methodStatic memberRepeatMinutelyForTotalCount(Int32, Int32)
Create a SimpleScheduleBuilder set to repeat the given number of times - 1 with an interval of the given number of minutes.
Public methodStatic memberRepeatSecondlyForever
Create a SimpleScheduleBuilder set to repeat forever with a 1 second interval.
Public methodStatic memberRepeatSecondlyForever(Int32)
Create a SimpleScheduleBuilder set to repeat forever with an interval of the given number of seconds.
Public methodStatic memberRepeatSecondlyForTotalCount(Int32)
Create a SimpleScheduleBuilder set to repeat the given number of times - 1 with a 1 second interval.
Public methodStatic memberRepeatSecondlyForTotalCount(Int32, Int32)
Create a SimpleScheduleBuilder set to repeat the given number of times - 1 with an interval of the given number of seconds.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWithInterval
Specify a repeat interval in milliseconds.
Public methodWithIntervalInHours
Public methodWithIntervalInMinutes
Public methodWithIntervalInSeconds
Specify a repeat interval in seconds.
Public methodWithMisfireHandlingInstructionFireNow
If the Trigger misfires, use the FireNow instruction.
Public methodWithMisfireHandlingInstructionIgnoreMisfires
If the Trigger misfires, use the IgnoreMisfirePolicy instruction.
Public methodWithMisfireHandlingInstructionNextWithExistingCount
If the Trigger misfires, use the RescheduleNextWithExistingCount instruction.
Public methodWithMisfireHandlingInstructionNextWithRemainingCount
If the Trigger misfires, use the RescheduleNextWithRemainingCount instruction.
Public methodWithMisfireHandlingInstructionNowWithExistingCount
If the Trigger misfires, use the RescheduleNowWithExistingRepeatCount instruction.
Public methodWithMisfireHandlingInstructionNowWithRemainingCount
If the Trigger misfires, use the RescheduleNowWithRemainingRepeatCount instruction.
Public methodWithRepeatCount
Specify a the number of time the trigger will repeat - total number of firings will be this number + 1.
Top
Remarks

Quartz provides a builder-style API for constructing scheduling-related entities via a Domain-Specific Language (DSL). The DSL can best be utilized through the usage of static imports of the methods on the classes TriggerBuilder, JobBuilder, DateBuilder, JobKey, TriggerKey and the various IScheduleBuilder implementations.

Client code can then use the DSL to write code such as this:

JobDetail job = JobBuilder.Create<MyJob>()
    .WithIdentity("myJob")
    .Build();
Trigger trigger = TriggerBuilder.Create()
    .WithIdentity(triggerKey("myTrigger", "myTriggerGroup"))
    .WithSimpleSchedule(x => x
        .WithIntervalInHours(1)
        .RepeatForever())
    .StartAt(DateBuilder.FutureDate(10, IntervalUnit.Minute))
    .Build();
scheduler.scheduleJob(job, trigger);
See Also

Reference