Class SimpleThreadFactory
- java.lang.Object
-
- io.github.lukehutch.fastclasspathscanner.utils.SimpleThreadFactory
-
- All Implemented Interfaces:
ThreadFactory
public class SimpleThreadFactory extends Object implements ThreadFactory
Simple implementation of a thread factory.- Author:
- Johno Crawford ([email protected])
-
-
Constructor Summary
Constructors Constructor Description SimpleThreadFactory(String threadNamePrefix, boolean daemon)
Constructor.
-
-
-
Constructor Detail
-
SimpleThreadFactory
public SimpleThreadFactory(String threadNamePrefix, boolean daemon)
Constructor.- Parameters:
threadNamePrefix
- prefix for created threads.daemon
- create daemon threads?
-
-
Method Detail
-
newThread
public Thread newThread(Runnable r)
- Specified by:
newThread
in interfaceThreadFactory
-
-