Package com.netflix.eureka.util.batcher
Interface TaskProcessor<T>
-
public interface TaskProcessor<T>An interface to be implemented by clients for task execution.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTaskProcessor.ProcessingResultA processed task/task list ends up in one of the following states:Successprocessing finished successfullyTransientErrorprocessing failed, but shall be retried laterPermanentErrorprocessing failed, and is non recoverable
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TaskProcessor.ProcessingResultprocess(java.util.List<T> tasks)For batched mode a collection of tasks is run at a time.TaskProcessor.ProcessingResultprocess(T task)In non-batched mode a single task is processed at a time.
-
-
-
Method Detail
-
process
TaskProcessor.ProcessingResult process(T task)
In non-batched mode a single task is processed at a time.
-
process
TaskProcessor.ProcessingResult process(java.util.List<T> tasks)
For batched mode a collection of tasks is run at a time. The result is provided for the aggregated result, and all tasks are handled in the same way according to what is returned (for example are rescheduled, if the error is transient).
-
-