public abstract class Task extends Object implements Callable<Task.TaskHint>
TaskExecutorService using TaskProcessor in a round robin manner.| Modifier and Type | Class and Description |
|---|---|
protected static class |
Task.TaskHint
Hint for the
TaskProcessor about the task execution. |
| Constructor and Description |
|---|
Task() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
abstract String |
getId()
Unique id for the Task.
|
int |
hashCode() |
abstract void |
onAdd()
Callback invoked when the
Task implementation is added to the internal task queue. |
abstract void |
onRemove()
Callback invoked when the
Task is removed by the TaskExecutorService. |
public abstract void onAdd()
Task implementation is added to the internal task queue. If the task is
a duplicate entry this method won't get invoked.public abstract void onRemove()
Task is removed by the TaskExecutorService.public abstract String getId()
Task
in TaskExecutorService this Task won't be processed.String.Copyright © 2017 WSO2. All rights reserved.