public class NamedThreadFactory extends Object implements ThreadFactory
Constructor and Description |
---|
NamedThreadFactory(String baseName) |
public NamedThreadFactory(String baseName)
public Thread newThread(Runnable runnable)
ThreadFactory
Thread
. Implementations may also initialize
priority, name, daemon status, ThreadGroup
, etc.newThread
in interface ThreadFactory
runnable
- a runnable to be executed by new thread instancenull
if the request to
create a thread is rejected