Package fr.gouv.vitam.common.thread

# Class VitamThreadFactory

java.lang.Object
fr.gouv.vitam.common.thread.VitamThreadFactory

All Implemented Interfaces:
  `ThreadFactory`

public class VitamThreadFactory extends Object implements 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

  Nested Classes
  Modifier and Type
  Class
  Description
  `static class`
  `VitamThreadFactory.VitamThread`
  Vitam Thread implementation ; mainly used to attach a threadlocal session to it.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `VitamThreadFactory()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static final VitamThreadFactory`
  `getInstance()`
  `Thread`
  `newThread(Runnable arg0)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### VitamThreadFactory

    public VitamThreadFactory()

- ## Method Details

  - ### newThread

    public Thread newThread(Runnable arg0)
    Specified by:
      `newThread` in interface `ThreadFactory`

  - ### getInstance

    public static final VitamThreadFactory getInstance()
    Returns:
      the default `VitamThreadFactory`