public class PrefixedThreadFactory
extends java.lang.Object
implements java.util.concurrent.ThreadFactory
Constructor and Description |
---|
PrefixedThreadFactory(java.lang.String prefix)
Creates the object using the default thread factory.
|
PrefixedThreadFactory(java.util.concurrent.ThreadFactory threadFactory,
java.lang.String prefix)
Creates the object delegating to the given thread factory.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Thread |
newThread(java.lang.Runnable r)
Creates a new thread.
|
public PrefixedThreadFactory(java.lang.String prefix)
prefix
- the prefixpublic PrefixedThreadFactory(java.util.concurrent.ThreadFactory threadFactory, java.lang.String prefix)
threadFactory
- the thread factoryprefix
- the prefixCopyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.