public class SimpleThreadFactory extends Object implements ThreadFactory
Constructor and Description |
---|
SimpleThreadFactory(String threadNamePrefix,
boolean daemon)
Constructor.
|
public SimpleThreadFactory(String threadNamePrefix, boolean daemon)
threadNamePrefix
- prefix for created threads.daemon
- create daemon threads?public Thread newThread(Runnable r)
newThread
in interface ThreadFactory
Copyright © 2016. All rights reserved.