public interface Calendar extends Serializable, Cloneable
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.
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
boolean |
isTimeIncluded(long timeStamp)
Determine whether the given time (in milliseconds) is 'included' by the Calendar.
|
boolean isTimeIncluded(long timeStamp)
Determine whether the given time (in milliseconds) is 'included' by the Calendar.
Object clone()
Copyright © 2011–2017 Knowm Inc.. All rights reserved.