|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ScheduledTask
Interface containing the basic methods of a schedulable task.
Method Summary | |
---|---|
void |
execute()
Executes this task. |
long |
getInterval()
Gets the time interval between executions of this task. |
String |
getName()
Gets the name of the specific task. |
boolean |
isEnabled()
Gets whether the task is enabled and running. |
boolean |
isRepeating()
Returns true if the task should be repeated indefinitely. |
void |
setEnabled(boolean enabled)
Sets whether the task is enabled and running. |
void |
setName(String name)
Sets the task name. |
Method Detail |
---|
long getInterval()
boolean isRepeating()
boolean isEnabled()
void setEnabled(boolean enabled)
enabled
- True if the task will be enabled, false if disabled.String getName()
void setName(String name)
name
- The name of the task.void execute()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |