public class TaskThreadPriority extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTEXT_KEY |
| Constructor and Description |
|---|
TaskThreadPriority() |
| Modifier and Type | Method and Description |
|---|---|
static Integer |
getThreadPriorityFromTaskPriority(int taskPriority)
Return the thread-factory friendly priorities from the task priority
|
public static final String CONTEXT_KEY
public static Integer getThreadPriorityFromTaskPriority(int taskPriority)
taskPriority - The priority for the task. >0 means high. 0 means inherit from current thread, <0 means low.Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.