public class TaskRemoveStrategy extends java.lang.Object implements TaskAbortStrategy
| Constructor and Description |
|---|
TaskRemoveStrategy(java.util.concurrent.ThreadPoolExecutor executor,
java.lang.Runnable task,
java.lang.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(java.util.concurrent.ThreadPoolExecutor executor,
java.lang.Runnable task,
java.lang.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