Class TaskBatcher.BatchedTask

All Implemented Interfaces:
Comparable<PrioritizedRunnable>, Runnable
Enclosing class:

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 AtomicBoolean processed
      whether the task has been processed already
    • batchingKey

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

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

  • Method Details