ch.bind.philib.lang
Class NamedSeqThreadFactory
java.lang.Object
ch.bind.philib.lang.NamedSeqThreadFactory
- All Implemented Interfaces:
- ThreadFactory
public final class NamedSeqThreadFactory
- extends Object
- implements ThreadFactory
A thread factory which generates thread names of the form <name>-<sequence>
- Author:
- philipp meinen
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NamedSeqThreadFactory
public NamedSeqThreadFactory(String name)
- Parameters:
name - The name which must be used for newly created threads.- See Also:
NamedSeqThreadFactory
NamedSeqThreadFactory
public NamedSeqThreadFactory(String name,
boolean daemon)
- Parameters:
name - The name which must be used for newly created threads.daemon - Newly created threads will have their daemon-flag set to the provided value.- See Also:
NamedSeqThreadFactory
NamedSeqThreadFactory
public NamedSeqThreadFactory(String name,
boolean daemon,
ThreadGroup group)
- Parameters:
name - The name which must be used for newly created threads.- See Also:
NamedSeqThreadFactory
newThread
public Thread newThread(Runnable r)
- Specified by:
newThread in interface ThreadFactory
Copyright © 2013. All Rights Reserved.