Class TaskBatcher.BatchedTask
org.elasticsearch.common.util.concurrent.PrioritizedRunnable
org.elasticsearch.cluster.service.SourcePrioritizedRunnable
org.elasticsearch.cluster.service.TaskBatcher.BatchedTask
- All Implemented Interfaces:
<
- Enclosing class:
- TaskBatcher
Represents a runnable task that supports batching.
Implementors of TaskBatcher can subclass this to add a payload to the task.
-
Field Summary
Modifier and TypeFieldDescriptionprotected
the object that is used as batching keyprotected
whether the task has been processed alreadyprotected
the task object that is wrappedFields inherited from class org.elasticsearch.cluster.service.SourcePrioritizedRunnable
source
-
Constructor Summary
ModifierConstructorDescriptionprotected
BatchedTask(Priority priority, source, batchingKey, task)
-
Method Summary
Modifier and TypeMethodDescriptionabstract
<? extends TaskBatcher.BatchedTask> tasks)
getTask()
void
run()
toString()
Methods inherited from class org.elasticsearch.cluster.service.SourcePrioritizedRunnable
source
Methods inherited from class org.elasticsearch.common.util.concurrent.PrioritizedRunnable
compareTo, getAgeInMillis, getCreationDateInNanos, priority, wrap
Methods inherited from class java.lang.
, , , , , , , , ,
-
Field Details
-
processed
protected final processedwhether the task has been processed already -
batchingKey
protected final batchingKeythe object that is used as batching key -
task
protected final taskthe task object that is wrapped
-
-
Constructor Details
-
BatchedTask
-
-
Method Details
-
run
public void run() -
toString
public toString()- Overrides:
toString
in classSourcePrioritizedRunnable
-
describeTasks
-
getTask
public getTask()
-