public class TypeTwoTask extends BaseBackgroundRunnable
| Constructor and Description |
|---|
TypeTwoTask() |
| Modifier and Type | Method and Description |
|---|---|
TimeInterval |
getExecutionTimeIntervalTypeTwo() |
java.lang.String |
getExecutionTimeIntervalTypeTwoStr() |
TimeInterval |
getTaskExecutionInterval() |
protected void |
initParamsForSpecificImplementation()
A hook method to be implemented by user extensions of this class.
|
void |
run() |
void |
setExecutionTimeIntervalTypeTwo(TimeInterval executionTimeIntervalTypeTwo) |
void |
setExecutionTimeIntervalTypeTwoStr(java.lang.String executionTimeIntervalTypeTwoStr) |
void |
setParamValue(TimeInterval value,
java.lang.String property)
This method is a general setter method for all properties that hold
TimeInterval value. |
initParams, initTimeIntervalParam, isInitialized, setInitializedinitprotected void initParamsForSpecificImplementation()
BaseBackgroundRunnablecom.mgnt.lifecycle.management.backgroundrunner.exampleinitParamsForSpecificImplementation in class BaseBackgroundRunnablepublic TimeInterval getTaskExecutionInterval()
TimeInterval that specifies how often the Task should be runpublic void setParamValue(TimeInterval value, java.lang.String property)
BackgroundRunnableTimeInterval value. It should be
implemented by user defined class implementing this interface. See source code for classes
TypeOneTask and
TypeTwoTask where one provide complex example
in which there are other properties besides Task Execution Interval and second that demonstrates a minimalistic
implementationvalue - TimeInterval value for the propertyproperty - name of the property to be setpublic void run()
public java.lang.String getExecutionTimeIntervalTypeTwoStr()
public void setExecutionTimeIntervalTypeTwoStr(java.lang.String executionTimeIntervalTypeTwoStr)
public TimeInterval getExecutionTimeIntervalTypeTwo()
public void setExecutionTimeIntervalTypeTwo(TimeInterval executionTimeIntervalTypeTwo)