
public class TimerTaskData extends Object implements Serializable
TimerTask data, which may be replicated in a cluster environment to support fail over.| Constructor and Description |
|---|
TimerTaskData(Serializable id,
long startTime,
long period,
PeriodicScheduleStrategy periodicScheduleStrategy) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
long |
getPeriod()
Retrieves the period of the associated timer task execution, -1 means it is not a periodic task.
|
PeriodicScheduleStrategy |
getPeriodicScheduleStrategy()
Retrieves the strategy used in a periodic timer task, can be null if it is not a periodic timer task.
|
long |
getStartTime()
Retrieves the starting time of the associated timer task execution.
|
Serializable |
getTaskID()
Retrieves the id of the associated timer task.
|
int |
hashCode() |
void |
setStartTime(long startTime)
Sets the starting time of the associated timer task execution.
|
public TimerTaskData(Serializable id, long startTime, long period, PeriodicScheduleStrategy periodicScheduleStrategy)
id - startTime - period - public long getPeriod()
public long getStartTime()
public void setStartTime(long startTime)
startTime - public Serializable getTaskID()
public PeriodicScheduleStrategy getPeriodicScheduleStrategy()
Copyright © 2016. All Rights Reserved.