Class PrioritizedRunnable
org.elasticsearch.common.util.concurrent.PrioritizedRunnable
- All Implemented Interfaces:
<
- Direct Known Subclasses:
SourcePrioritizedRunnable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
long
The elapsed time in milliseconds since this instance was created, as calculated by the difference between at the time of creation, and at the time of invocation of this methodlong
priority()
static WrappedRunnable
runnable, Priority priority)
Methods inherited from class java.lang.
, , , , , , , , , ,
Methods inherited from interface java.lang.
-
Constructor Details
-
PrioritizedRunnable
-
-
Method Details
-
wrap
public static runnable, Priority priority) -
getCreationDateInNanos
public long getCreationDateInNanos() -
getAgeInMillis
public long getAgeInMillis()The elapsed time in milliseconds since this instance was created, as calculated by the difference between at the time of creation, and at the time of invocation of this method- Returns:
- the age in milliseconds calculated
-
compareTo
- Specified by:
in interface
<PrioritizedRunnable>
-
priority
-