Class NamedThreadFactory
- java.lang.Object
-
- org.antublue.test.engine.internal.util.NamedThreadFactory
-
- All Implemented Interfaces:
ThreadFactory
public final class NamedThreadFactory extends Object implements ThreadFactory
Class to implement a named ThreadFactory
-
-
Constructor Summary
Constructors Constructor Description NamedThreadFactory(String format)Constructor
-
-
-
Constructor Detail
-
NamedThreadFactory
public NamedThreadFactory(String format)
Constructor- Parameters:
format- format
-
-
Method Detail
-
newThread
public Thread newThread(Runnable r)
Method to create a new Thread- Specified by:
newThreadin interfaceThreadFactory- Parameters:
r- a runnable to be executed by new thread instance- Returns:
- the Thread
-
-