Class ThreadPriorityContextProvider

java.lang.Object
org.eclipse.microprofile.context.tck.contexts.priority.spi.ThreadPriorityContextProvider
All Implemented Interfaces:
ThreadContextProvider

public class ThreadPriorityContextProvider extends Object implements ThreadContextProvider
This is an example context type that is created by the test suite. This context type captures/clears/propagates/restores thread priority (java.lang.Thread.get/setPriority). This is chosen, not because it is useful in any way, but because the concept of thread priority is simple, well understood, and already built into Java.