public class TaskExecutionCleaner extends Object
TaskExecutionCleanupJob
.Modifier and Type | Field and Description |
---|---|
static String |
KEY_TASK_EXECUTION_CLEANER
Key under which this instance is stored in the context of the scheduler instance
|
Constructor and Description |
---|
TaskExecutionCleaner()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addTaskToFail(String taskName)
Add a task that should be marked as failed.
|
void |
addTaskToStop(String taskName)
Add a task that should be stopped.
|
void |
processTasksToFail()
Process all tasks that should be marked as failed.
|
void |
processTasksToStop()
Process all tasks that should be stopped.
|
public static final String KEY_TASK_EXECUTION_CLEANER
public void addTaskToFail(String taskName)
taskName
- the unique name of the taskpublic void addTaskToStop(String taskName)
taskName
- the unique name of the taskpublic void processTasksToFail()
public void processTasksToStop()
Copyright © 2019 Communote team. All rights reserved.