public class OneTimeScheduleEntry extends ScheduleEntry
OneTimeScheduleEntry
class encapsulates one time event
that can be configured by the subscriber to taken.
The EventTIme is used as the key to schedule one time events. There is only a maximum of one
Constructor and Description |
---|
OneTimeScheduleEntry()
Default constrcutor
|
OneTimeScheduleEntry(long eventTime,
Action[] actions)
Constrcutor with eventDate and actions
|
Modifier and Type | Method and Description |
---|---|
long |
getEventTime()
Gets the time for the event using the given milliseconds time value.
|
java.lang.String |
getId() |
ScheduledTime |
getScheduledTime()
Gets the time for the event using the given milliseconds time value
|
void |
setEventTime(long date)
Sets the time for the event using the given milliseconds time value.
|
java.lang.String |
toString()
For debugging only.
|
getActions, setActions, setId, setScheduledTime
public OneTimeScheduleEntry()
public OneTimeScheduleEntry(long eventTime, Action[] actions)
long
- eventTime The event timeAction[]
- actions The actions to take at the event time.public void setEventTime(long date)
If the given milliseconds value contains time information, the driver will set the time components to the time in the default time zone (the time zone of the Java virtual machine running the application) that corresponds to zero GMT.
date
- milliseconds since January 1, 1970, 00:00:00 GMT not to
exceed the milliseconds representation for the year 8099. A
negative number indicates the number of milliseconds before
January 1, 1970, 00:00:00 GMT.getEventTime()
,
Date.setTime(long)
public long getEventTime()
setEventTime(long)
,
Date.setTime(long)
public java.lang.String getId()
getId
in class ScheduleEntry
public ScheduledTime getScheduledTime()
ScheduleEntry
getScheduledTime
in class ScheduleEntry
Date.setTime(long)
public java.lang.String toString()
toString
in class ScheduleEntry