We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.base.devserver.
Package com.vaadin.base.devserver
Class NamedDaemonThreadFactory
java.lang.Object
com.vaadin.base.devserver.NamedDaemonThreadFactory
All Implemented Interfaces:
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 new
NamedDaemonThreadFactory
with the specified name prefix for the threads created by this factory. -
Method Summary
-
Constructor Details
-
NamedDaemonThreadFactory
Constructs a new
NamedDaemonThreadFactory
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
-