public interface TaskProcessor<T>
| Modifier and Type | Interface and Description |
|---|---|
static class |
TaskProcessor.ProcessingResult
A processed task/task list ends up in one of the following states:
Success processing finished successfully
TransientError processing failed, but shall be retried later
PermanentError processing failed, and is non recoverable
|
| Modifier and Type | Method and Description |
|---|---|
TaskProcessor.ProcessingResult |
process(java.util.List<T> tasks)
For batched mode a collection of tasks is run at a time.
|
TaskProcessor.ProcessingResult |
process(T task)
In non-batched mode a single task is processed at a time.
|
TaskProcessor.ProcessingResult process(T task)
TaskProcessor.ProcessingResult process(java.util.List<T> tasks)