public class ThreadPriorityContextProvider extends Object implements ThreadContextProvider
Modifier and Type | Field and Description |
---|---|
static String |
THREAD_PRIORITY |
Constructor and Description |
---|
ThreadPriorityContextProvider() |
Modifier and Type | Method and Description |
---|---|
ThreadContextSnapshot |
clearedContext(Map<String,String> props)
Thread priority context is considered cleared by resetting to normal priority (Thread.NORM_PRIORITY).
|
ThreadContextSnapshot |
currentContext(Map<String,String> props)
Save the current thread priority.
|
String |
getThreadContextType() |
public static final String THREAD_PRIORITY
public ThreadContextSnapshot clearedContext(Map<String,String> props)
clearedContext
in interface ThreadContextProvider
public ThreadContextSnapshot currentContext(Map<String,String> props)
currentContext
in interface ThreadContextProvider
public String getThreadContextType()
getThreadContextType
in interface ThreadContextProvider
Copyright © 2021 Eclipse Foundation. All rights reserved.