In Java is there a way to set the priority for the thread that will be calling the doInBackground()
method of a SwingWorker
object?
In the Thread API there is a setPriority()
method. The SwingWorker.execute()
method schedules the swingworker for execution on a worker thread. I would like to have access to that worker thread to set it's priority.
From my understanding this worker thread comes from a default worker thread pool. Would the only way to handle this is to use my own executor?