org.schmant.run
Class TaskExecutorThreadFactory
java.lang.Object
org.schmant.run.TaskExecutorThreadFactory
- All Implemented Interfaces:
- ThreadFactory
public class TaskExecutorThreadFactory
- extends Object
- implements ThreadFactory
Default thread factory for the TaskExecutor
. It creates
ReportingThread
:s.
- Since:
- 0.5
- Author:
- Karl Gustafsson.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TaskExecutorThreadFactory
public TaskExecutorThreadFactory()
newThread
public Thread newThread(Runnable r)
- Specified by:
newThread
in interface ThreadFactory
registerThreadContextInitializer
public static void registerThreadContextInitializer(ThreadContextInitializer tci)
- Register a thread context initializer that is used to set the right
context on newly created threads.
- Parameters:
tci
- A thread context initializer.- Since:
- 1.1