Package org.javlo.utils
Class NamedThreadFactory
- java.lang.Object
-
- org.javlo.utils.NamedThreadFactory
-
- All Implemented Interfaces:
ThreadFactory
public class NamedThreadFactory extends Object implements ThreadFactory
-
-
Constructor Summary
Constructors Constructor Description NamedThreadFactory(String namePrefix)
NamedThreadFactory(String namePrefix, boolean daemon)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPrefix()
boolean
isDaemon()
Thread
newThread(Runnable runnable)
-
-
-
Method Detail
-
getPrefix
public String getPrefix()
-
isDaemon
public boolean isDaemon()
-
newThread
public Thread newThread(Runnable runnable)
- Specified by:
newThread
in interfaceThreadFactory
-
-