public interface TimeEvent extends Event
SimpleEvent
Modifier and Type | Field and Description |
---|---|
static int |
INTERVAL_UNIT_DAYS
Represents the time unit: days.
|
static int |
INTERVAL_UNIT_HOURS
Represents the time unit: hours.
|
static int |
INTERVAL_UNIT_MILLISECONDS
Represents the time unit: milliseconds.
|
static int |
INTERVAL_UNIT_MINUTES
Represents the time unit: minutes.
|
static int |
INTERVAL_UNIT_SECONDS
Represents the time unit: seconds.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClosure()
Gets the closure of this event.
|
long |
getInterval()
Gets the repeating interval in milliseconds.
|
java.util.Calendar |
getScheduledTime()
Gets the schedule time of this time event.
|
long |
getScheduledTimeMillis()
Gets the schedule time of this time event in milliseconds since the epoch.
|
boolean |
isRepeating()
Specifies whether the event is a repeating event.
|
void |
setClosure(java.lang.String closure)
Sets the closure of this time event.
|
void |
setScheduledTime(java.util.Calendar time)
Sets the schedule time of this event.
|
void |
setScheduledTime(long time)
Sets the schedule time of this time event.
|
getTTL, hasExpiryAction, onExpiry
static final int INTERVAL_UNIT_MILLISECONDS
static final int INTERVAL_UNIT_SECONDS
static final int INTERVAL_UNIT_MINUTES
static final int INTERVAL_UNIT_HOURS
static final int INTERVAL_UNIT_DAYS
boolean isRepeating()
long getInterval()
void setClosure(java.lang.String closure)
closure
- the String
closure to be set.java.lang.String getClosure()
void setScheduledTime(java.util.Calendar time)
time
- a Calendar
specifying the time to schedule.void setScheduledTime(long time)
time
- a long
specifying the time to schedule in milliseconds since the epoch.java.util.Calendar getScheduledTime()
Calendar
specifying the scheduled time of this event.long getScheduledTimeMillis()