Class DispatcherThreadFactory
- java.lang.Object
-
- org.apache.flink.runtime.taskmanager.DispatcherThreadFactory
-
- All Implemented Interfaces:
ThreadFactory
public class DispatcherThreadFactory extends Object implements ThreadFactory
Thread factory that creates threads with a given name, associates them with a given thread group, and set them to daemon mode.
-
-
Constructor Summary
Constructors Constructor Description DispatcherThreadFactory(ThreadGroup group, String threadName)
Creates a new thread factory.
-
-
-
Constructor Detail
-
DispatcherThreadFactory
public DispatcherThreadFactory(ThreadGroup group, String threadName)
Creates a new thread factory.- Parameters:
group
- The group that the threads will be associated with.threadName
- The name for the threads.
-
-
Method Detail
-
newThread
public Thread newThread(Runnable r)
- Specified by:
newThread
in interfaceThreadFactory
-
-