Class ContextPropagatingThreadFactory

  • All Implemented Interfaces:
    java.util.concurrent.ThreadFactory

    public class ContextPropagatingThreadFactory
    extends java.lang.Object
    implements java.util.concurrent.ThreadFactory
    A ThreadFactory that propagates a Context from the creating thread into the new thread. This factory creates daemon threads.
    • Constructor Detail

      • ContextPropagatingThreadFactory

        public ContextPropagatingThreadFactory​(java.lang.String name,
                                               int priority)
      • ContextPropagatingThreadFactory

        public ContextPropagatingThreadFactory​(java.lang.String name)
    • Method Detail

      • newThread

        public java.lang.Thread newThread​(java.lang.Runnable r)
        Specified by:
        newThread in interface java.util.concurrent.ThreadFactory