public interface ICalendar
ITrigger may (not) fire. Calendars
do not define actual fire times, but rather are used to limit a
Trigger from firing on its normal schedule if necessary. Most
Calendars include all times by default and allow the user to specify times to
exclude.
As such, it is often useful to think of Calendars as being used to
exclude a block of time - as opposed to include a block of
time. (i.e. the schedule "fire every five minutes except on
Sundays" could be implemented with a SimpleTrigger and a
WeeklyCalendar which excludes Sundays)
| Modifier and Type | Field and Description |
|---|---|
static int |
MONTH |
| Modifier and Type | Method and Description |
|---|---|
ICalendar |
getBaseCalendar()
Get the base calendar.
|
ICalendar |
getClone() |
String |
getDescription()
Return the description given to the
Calendar instance by its
creator (if any). |
long |
getNextIncludedTime(long timeStamp)
Determine the next time (in milliseconds) that is 'included' by the
Calendar after the given time.
|
boolean |
isTimeIncluded(long timeStamp)
Determine whether the given time (in milliseconds) is 'included' by the
Calendar.
|
void |
setBaseCalendar(ICalendar baseCalendar)
Set a new base calendar or remove the existing one.
|
void |
setDescription(String description)
Set a description for the
Calendar instance - may be useful
for remembering/displaying the purpose of the calendar, though the
description has no meaning to Quartz. |
static final int MONTH
@Nullable ICalendar getBaseCalendar()
null, if not set.void setBaseCalendar(@Nullable ICalendar baseCalendar)
baseCalendar - The new base calendar. May be null.@Nullable String getDescription()
Calendar instance by its
creator (if any).null if no description was set.void setDescription(@Nullable String description)
Calendar instance - may be useful
for remembering/displaying the purpose of the calendar, though the
description has no meaning to Quartz.description - The new description. May be null.boolean isTimeIncluded(long timeStamp)
long getNextIncludedTime(long timeStamp)
Copyright © 2016–2021 Philip Helger. All rights reserved.