Package fr.gouv.vitam.common.thread
Class VitamThreadFactory
java.lang.Object
fr.gouv.vitam.common.thread.VitamThreadFactory
- All Implemented Interfaces:
ThreadFactory
Simple ThreadFactory setting Threads to be Daemon threads (do not prevent shutdown) ; in addition, creates
VitamThread allowing us to put session information in those threads.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Vitam Thread implementation ; mainly used to attach a threadlocal session to it. -
Constructor Summary
-
Method Summary
-
Constructor Details
-
VitamThreadFactory
public VitamThreadFactory()
-
-
Method Details
-
newThread
- Specified by:
newThread
in interfaceThreadFactory
-
getInstance
- Returns:
- the default
VitamThreadFactory
-