Class NamedThreadFactory
java.lang.Object
org.jmxtrans.embedded.util.concurrent.NamedThreadFactory
- All Implemented Interfaces:
ThreadFactory
public class NamedThreadFactory extends Object implements ThreadFactory
Basic ThreadFactory to redefine the name of the created thread.
Inspired by Google Guava's
com.google.common.util.concurrent.ThreadFactoryBuilder- Author:
- Cyrille Le Clerc
-
Constructor Summary
Constructors Constructor Description NamedThreadFactory(String threadNamePrefix, boolean daemon) -
Method Summary
-
Constructor Details
-
NamedThreadFactory
-
-
Method Details
-
newThread
- Specified by:
newThreadin interfaceThreadFactory
-