Package io.vertigo.core.lang
Class NamedThreadFactory
java.lang.Object
io.vertigo.core.lang.NamedThreadFactory
- All Implemented Interfaces:
ThreadFactory
A default
ThreadFactory implementation that accepts the name prefix of the created
threads as a constructor argument. Otherwise, this factory yields the same semantics as the
thread factory returned by Executors.defaultThreadFactory().-
Constructor Summary
ConstructorsConstructorDescriptionNamedThreadFactory(String namePrefix) Constructor accepting the prefix of the threads that will be created by thisThreadFactory. -
Method Summary
-
Constructor Details
-
NamedThreadFactory
Constructor accepting the prefix of the threads that will be created by thisThreadFactory.- Parameters:
namePrefix- Prefix for names of threads
-
-
Method Details
-
newThread
Returns a new thread using a name as specified by this factory.- Specified by:
newThreadin interfaceThreadFactory
-