Class NamedThreadFactory

java.lang.Object
com.jme3.network.kernel.NamedThreadFactory
All Implemented Interfaces:
ThreadFactory

public class NamedThreadFactory extends Object implements ThreadFactory
A simple factory that delegates to java.util.concurrent's default thread factory but adds a prefix to the beginning of the thread name.
Author:
Paul Speed
  • Constructor Details

    • NamedThreadFactory

      public NamedThreadFactory(String name)
      Creates a named thread factory using the default thread factory.
      Parameters:
      name - the thread name prefix
    • NamedThreadFactory

      public NamedThreadFactory(String name, boolean daemon)
      Creates a named thread factory using the default thread factory.
      Parameters:
      name - the thread name prefix
      daemon - true to mark created threads as daemon threads
    • NamedThreadFactory

      public NamedThreadFactory(String name, ThreadFactory delegate)
      Creates a named thread factory that wraps another thread factory.
      Parameters:
      name - the thread name prefix
      delegate - the wrapped thread factory
    • NamedThreadFactory

      public NamedThreadFactory(String name, boolean daemon, ThreadFactory delegate)
      Creates a named thread factory that wraps another thread factory.
      Parameters:
      name - the thread name prefix
      daemon - true to mark created threads as daemon threads
      delegate - the wrapped thread factory
  • Method Details