public abstract class CustomTimerTask extends Object
| Constructor and Description |
|---|
CustomTimerTask(String taskName,
int times)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
execute() |
String |
getTaskName()
Get name
|
int |
getTimes()
Getter for the times
|
void |
reduceTimes() |
void |
setTaskName(String taskName)
Set name
|
void |
setTimes(int times)
Setter for the times
|
public CustomTimerTask(String taskName, int times)
taskName - Name of the taskpublic String getTaskName()
public void setTaskName(String taskName)
taskName - new namepublic int getTimes()
public void setTimes(int times)
times - Number of times the task must be executedpublic void reduceTimes()
public abstract void execute()
Copyright © 2016. All rights reserved.