Package com.logicaldoc.core.threading
Class NamedThreadFactory
- java.lang.Object
-
- com.logicaldoc.core.threading.NamedThreadFactory
-
- All Implemented Interfaces:
ThreadFactory
public class NamedThreadFactory extends Object implements ThreadFactory
This thread factory acts likeExecutors.defaultThreadFactory()
but gives a name prefix to the new thread.- Since:
- 7.5
- Author:
- Marco Meschieri - LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description NamedThreadFactory(String baseName)
-
-
-
Constructor Detail
-
NamedThreadFactory
public NamedThreadFactory(String baseName)
-
-
Method Detail
-
newThread
public Thread newThread(Runnable r)
- Specified by:
newThread
in interfaceThreadFactory
-
-