Package com.vaadin.base.devserver
Class NamedDaemonThreadFactory
java.lang.Object
com.vaadin.base.devserver.NamedDaemonThreadFactory
- All Implemented Interfaces:
ThreadFactory
A factory for creating daemon threads with custom naming conventions, used to
generate threads with a predefined naming pattern.
This class implements the
ThreadFactory
interface to provide a
mechanism for instantiating threads that are configured with specific
attributes such as name prefix, thread priority, and daemon status.-
Constructor Summary
ConstructorsConstructorDescriptionNamedDaemonThreadFactory
(String namePrefix) Constructs a newNamedDaemonThreadFactory
with the specified name prefix for the threads created by this factory. -
Method Summary
-
Constructor Details
-
NamedDaemonThreadFactory
Constructs a newNamedDaemonThreadFactory
with the specified name prefix for the threads created by this factory.- Parameters:
namePrefix
- the prefix to be used for naming threads created by this factory, not null.
-
-
Method Details
-
newThread
- Specified by:
newThread
in interfaceThreadFactory
-