Class VitamThreadFactory.VitamThread

java.lang.Object
java.lang.Thread
fr.gouv.vitam.common.thread.VitamThreadFactory.VitamThread
All Implemented Interfaces:
Runnable
Enclosing class:
VitamThreadFactory

public static class VitamThreadFactory.VitamThread extends Thread
Vitam Thread implementation ; mainly used to attach a threadlocal session to it.
  • Constructor Details

    • VitamThread

      public VitamThread(Runnable runnable, long rank)
      Thread constructor
      Parameters:
      runnable - the real runnable
      rank - the thread rank
  • Method Details

    • getVitamSession

      @NotNull public @NotNull VitamSession getVitamSession()
      Returns:
      the ThreadLocal ; never returns null.