com.jme3.network.kernel
Class NamedThreadFactory
java.lang.Object
com.jme3.network.kernel.NamedThreadFactory
- All Implemented Interfaces:
- java.util.concurrent.ThreadFactory
public class NamedThreadFactory
- extends java.lang.Object
- implements java.util.concurrent.ThreadFactory
A simple factory that delegates to java.util.concurrent's
default thread factory but adds a prefix to the beginning
of the thread name.
Method Summary |
java.lang.Thread |
newThread(java.lang.Runnable r)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NamedThreadFactory
public NamedThreadFactory(java.lang.String name)
NamedThreadFactory
public NamedThreadFactory(java.lang.String name,
boolean daemon)
NamedThreadFactory
public NamedThreadFactory(java.lang.String name,
java.util.concurrent.ThreadFactory delegate)
NamedThreadFactory
public NamedThreadFactory(java.lang.String name,
boolean daemon,
java.util.concurrent.ThreadFactory delegate)
newThread
public java.lang.Thread newThread(java.lang.Runnable r)
- Specified by:
newThread
in interface java.util.concurrent.ThreadFactory