Package org.apache.druid.concurrent
Class TaskThreadPriority
java.lang.Object
org.apache.druid.concurrent.TaskThreadPriority
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IntegergetThreadPriorityFromTaskPriority(int taskPriority) Return the thread-factory friendly priorities from the task priority
-
Field Details
-
CONTEXT_KEY
- See Also:
-
-
Constructor Details
-
TaskThreadPriority
public TaskThreadPriority()
-
-
Method Details
-
getThreadPriorityFromTaskPriority
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
-