| Package | Description |
|---|---|
| com.mgnt.lifecycle.management.backgroundrunner |
This package contains infrastructure that can run user implemented Task classes in a separate thread at configured
time interval.
|
| com.mgnt.lifecycle.management.backgroundrunner.example | |
| com.mgnt.utils |
| Modifier and Type | Method and Description |
|---|---|
TimeInterval |
BackgroundRunnable.getTaskExecutionInterval() |
| Modifier and Type | Method and Description |
|---|---|
void |
BaseBackgroundRunnable.initTimeIntervalParam(java.lang.String valueStr,
TimeInterval defaultValue,
java.lang.String propertyName)
This method parses String value into a
TimeInterval and then invokes method
BackgroundRunnable.setParamValue(TimeInterval, String) to set required property value. |
void |
BackgroundRunnable.initTimeIntervalParam(java.lang.String valueStr,
TimeInterval defaultValue,
java.lang.String propertyName)
This is internally implemented method (in class
BaseBackgroundRunnable) it allows to initialize
other properties of type TimeInterval If such properties exist then the user will need to override
method BackgroundRunnable.setParamValue(TimeInterval, String) so it will know what setter method to invoke based on
propertyName parameter. |
void |
BackgroundRunnable.setParamValue(TimeInterval value,
java.lang.String property)
This method is a general setter method for all properties that hold
TimeInterval value. |
| Modifier and Type | Method and Description |
|---|---|
TimeInterval |
TypeOneTask.getExecutionTimeInterval() |
TimeInterval |
TypeTwoTask.getExecutionTimeIntervalTypeTwo() |
TimeInterval |
TypeTwoTask.getTaskExecutionInterval() |
TimeInterval |
TypeOneTask.getTaskExecutionInterval() |
TimeInterval |
TypeOneTask.getTimeIntervalProperty() |
| Modifier and Type | Method and Description |
|---|---|
void |
TypeOneTask.setExecutionTimeInterval(TimeInterval executionTimeInterval) |
void |
TypeTwoTask.setExecutionTimeIntervalTypeTwo(TimeInterval executionTimeIntervalTypeTwo) |
void |
TypeTwoTask.setParamValue(TimeInterval value,
java.lang.String property) |
void |
TypeOneTask.setParamValue(TimeInterval value,
java.lang.String property) |
void |
TypeOneTask.setTimeIntervalProperty(TimeInterval timeIntervalProperty) |
| Modifier and Type | Method and Description |
|---|---|
static TimeInterval |
TextUtils.parseStringToTimeInterval(java.lang.String valueStr)
This method parses String value into
TimeInterval. |
static TimeInterval |
TextUtils.parsingStringToTimeInterval(java.lang.String valueStr)
Deprecated.
Use
TextUtils.parseStringToTimeInterval(String) instead. The new method the same as this one except the name change.
This method is left for backwards compatibility only and will be removed in future versions. |
| Modifier and Type | Method and Description |
|---|---|
static void |
TimeUtils.sleepFor(TimeInterval timeInterval)
This is an overload for method
TimeUtils.sleepFor(long, TimeUnit) which is provided for convenience. |