Class NamedThreadFactory
java.lang.Object
com.jme3.network.kernel.NamedThreadFactory
- All Implemented Interfaces:
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.
- Author:
- Paul Speed
-
Constructor Summary
ConstructorsConstructorDescriptionNamedThreadFactory(String name) Creates a named thread factory using the default thread factory.NamedThreadFactory(String name, boolean daemon) Creates a named thread factory using the default thread factory.NamedThreadFactory(String name, boolean daemon, ThreadFactory delegate) Creates a named thread factory that wraps another thread factory.NamedThreadFactory(String name, ThreadFactory delegate) Creates a named thread factory that wraps another thread factory. -
Method Summary
-
Constructor Details
-
NamedThreadFactory
Creates a named thread factory using the default thread factory.- Parameters:
name- the thread name prefix
-
NamedThreadFactory
Creates a named thread factory using the default thread factory.- Parameters:
name- the thread name prefixdaemon- true to mark created threads as daemon threads
-
NamedThreadFactory
Creates a named thread factory that wraps another thread factory.- Parameters:
name- the thread name prefixdelegate- the wrapped thread factory
-
NamedThreadFactory
Creates a named thread factory that wraps another thread factory.- Parameters:
name- the thread name prefixdaemon- true to mark created threads as daemon threadsdelegate- the wrapped thread factory
-
-
Method Details
-
newThread
- Specified by:
newThreadin interfaceThreadFactory
-