Package org.apache.druid.concurrent
Class TaskThreadPriority
- java.lang.Object
-
- org.apache.druid.concurrent.TaskThreadPriority
-
public class TaskThreadPriority extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONTEXT_KEY
-
Constructor Summary
Constructors Constructor Description TaskThreadPriority()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Integer
getThreadPriorityFromTaskPriority(int taskPriority)
Return the thread-factory friendly priorities from the task priority
-
-
-
Field Detail
-
CONTEXT_KEY
public static final String CONTEXT_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getThreadPriorityFromTaskPriority
public static Integer getThreadPriorityFromTaskPriority(int taskPriority)
Return the thread-factory friendly priorities from the task priority- Parameters:
taskPriority
- The priority for the task. >0 means high. 0 means inherit from current thread, <0 means low.- Returns:
- The thread priority to use in a thread factory, or null if no priority is to be set
-
-