org.modeshape.common.util

## Class NamedThreadFactory

- java.lang.Object
- - org.modeshape.common.util.NamedThreadFactory

- All Implemented Interfaces:
    ThreadFactory

      public class NamedThreadFactory
      extends Object
      implements ThreadFactory

  The thread factory that lets us adjust the names of the threads.
  See Also:
    `Executors.defaultThreadFactory()`

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `NamedThreadFactory(String poolName)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Thread` | `newThread(Runnable r)`

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

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

- - ### Constructor Detail

    - #### NamedThreadFactory

          public NamedThreadFactory(String poolName)

  - ### Method Detail

    - #### newThread

          public Thread newThread(Runnable r)

      Specified by:
        `newThread` in interface `ThreadFactory`

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.