Class ContextTrackingExecutor.NamedThreadFactory

  • All Implemented Interfaces:
    ThreadFactory
    Enclosing class:
    ContextTrackingExecutor

    public static class ContextTrackingExecutor.NamedThreadFactory
    extends Object
    implements ThreadFactory
    A thread factory that names new threads based on its own name. Each instance has an associated thread group (named after itself), which newly created threads will belong to. All such instance associated thread groups have a common parent (named "ContextTrackingExecutors"), which in turn is a child of the system default thread group (obtained from system security manager under normal circumstances).
    • Constructor Detail

      • NamedThreadFactory

        public NamedThreadFactory​(String name)
        Constructs a factory that will assign Thread.NORM_PRIORITY to created threads.
      • NamedThreadFactory

        public NamedThreadFactory​(String name,
                                  int priority)
        Constructs a factory that will assign priority to created threads.
    • Method Detail