public class Executors extends Object
Constructor and Description |
---|
Executors() |
Modifier and Type | Method and Description |
---|---|
static Executor |
localThread()
Executes tasks on the current thread.
|
static ThreadFactory |
namedPool(String poolName)
A thread factory where each new thread starts with the given name.
|
static Executor |
swingEDT()
Executes tasks on the Swing Event Dispatch Thread using
SwingUtilities.invokeLater().
|
public static Executor swingEDT()
public static Executor localThread()
public static ThreadFactory namedPool(String poolName)
Executors.defaultThreadFactory()
,
which unfortunately
only use generic names for the thread, which makes it harder to debug.poolName
- name of the poolCopyright © 2010–2015. All rights reserved.