Package org.quartz.core
Interface Calendar
- All Superinterfaces:
Cloneable
,Serializable
An interface to be implemented by objects that define spaces of time during which an associated
Trigger
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)
Implementations MUST take care of being properly Cloneable
and Serializable
.
- Author:
- James House, Juergen Donnerstag
-
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
isTimeIncluded
(long timeStamp) Determine whether the given time (in milliseconds) is 'included' by the Calendar.
-
Method Details
-
isTimeIncluded
boolean isTimeIncluded(long timeStamp) Determine whether the given time (in milliseconds) is 'included' by the Calendar. -
clone
Object clone()
-