ch.bind.philib.lang
Class NamedSeqThreadFactory

java.lang.Object
  extended by 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

Constructor Summary
NamedSeqThreadFactory(String name)
           
 
Method Summary
 Thread newThread(Runnable r)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedSeqThreadFactory

public NamedSeqThreadFactory(String name)
Parameters:
name - The name which must be used for newly created threads.
See Also:
NamedSeqThreadFactory
Method Detail

newThread

public Thread newThread(Runnable r)
Specified by:
newThread in interface ThreadFactory


Copyright © 2013. All Rights Reserved.