public class TaskRemoveStrategy extends Object implements TaskAbortStrategy
| Constructor and Description |
|---|
TaskRemoveStrategy(ThreadPoolExecutor executor,
Runnable task,
String taskType)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
invoke()
Invoke the strategy in order to abort the task (that registered this abort strategy).
|
public TaskRemoveStrategy(ThreadPoolExecutor executor, Runnable task, String taskType)
executor - The executor executing or queueing the task.task - The task.taskType - The type of the task.public boolean invoke()
invoke in interface TaskAbortStrategy