|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cosylab.util.AbstractSchedulerTask
public abstract class AbstractSchedulerTask
This is a convenience implementation of SchedulerTask
interface.
Constructor Summary | |
---|---|
AbstractSchedulerTask(java.lang.String taskName,
long taskInterval)
Creates a new AbstractSchedulerTask object. |
Method Summary | |
---|---|
void |
cancel()
Mark this task to be canceled. |
long |
getInterval()
Returns interval between executions. |
java.lang.String |
getTaskName()
Returns name of this task. |
boolean |
isCanceled()
Returns whether cancel() has been called. |
void |
setTaskName(java.lang.String taskName)
Set new name for this task. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.cosylab.util.SchedulerTask |
---|
run |
Constructor Detail |
---|
public AbstractSchedulerTask(java.lang.String taskName, long taskInterval)
taskName
- DOCUMENT ME!taskInterval
- DOCUMENT ME!Method Detail |
---|
public void cancel()
cancel
in interface SchedulerTask
SchedulerTask.cancel()
public boolean isCanceled()
cancel()
has been called.
isCanceled
in interface SchedulerTask
SchedulerTask.isCanceled()
public void setTaskName(java.lang.String taskName)
taskName
- Name of task.public java.lang.String getTaskName()
SchedulerTask
getTaskName
in interface SchedulerTask
SchedulerTask.getTaskName()
public long getInterval()
getInterval
in interface SchedulerTask
SchedulerTask.getInterval()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |