Class TaskBatcher.BatchedTask

All Implemented Interfaces:
<
Enclosing class:
TaskBatcher

protected abstract class TaskBatcher.BatchedTask extends SourcePrioritizedRunnable
Represents a runnable task that supports batching. Implementors of TaskBatcher can subclass this to add a payload to the task.
  • Field Details

    • processed

      protected final  processed
      whether the task has been processed already
    • batchingKey

      protected final  batchingKey
      the object that is used as batching key
    • task

      protected final  task
      the task object that is wrapped
  • Constructor Details

    • BatchedTask

      protected BatchedTask(Priority priority,  source,  batchingKey,  task)
  • Method Details