Class SourcePrioritizedRunnable
java.lang.Object
org.elasticsearch.common.util.concurrent.PrioritizedRunnable
org.elasticsearch.cluster.service.SourcePrioritizedRunnable
- All Implemented Interfaces:
java.lang.Comparable<PrioritizedRunnable>
,java.lang.Runnable
- Direct Known Subclasses:
TaskBatcher.BatchedTask
public abstract class SourcePrioritizedRunnable extends PrioritizedRunnable
PrioritizedRunnable that also has a source string
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
source
-
Constructor Summary
Constructors Constructor Description SourcePrioritizedRunnable(Priority priority, java.lang.String source)
-
Method Summary
Methods inherited from class org.elasticsearch.common.util.concurrent.PrioritizedRunnable
compareTo, getAgeInMillis, getCreationDateInNanos, priority, wrap
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Runnable
run
-
Field Details
-
source
protected final java.lang.String source
-
-
Constructor Details
-
SourcePrioritizedRunnable
-
-
Method Details
-
source
public java.lang.String source() -
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-