public interface Task
Modifier and Type | Method and Description |
---|---|
void |
execute()
Executes the task defined in the task definition.
|
TaskDefinition |
getTaskDefinition()
Returns the task definition associated with this task.
|
void |
initialize(TaskDefinition definition)
Initializes the task and sets the task definition.
|
boolean |
isExecuting()
Returns true if the task is currently in its execute() method.
|
void |
shutdown()
Callback method used to clean up resources used during the tasks execution.
|
void execute()
void initialize(TaskDefinition definition)
definition
- TaskDefinition getTaskDefinition()
boolean isExecuting()
void shutdown()
Copyright © 2024 OpenMRS Inc.. All rights reserved.