de.caff.util.concurrent

## Class Exec.DefaultThreadFactory

- java.lang.Object
- - de.caff.util.concurrent.Exec.DefaultThreadFactory

- All Implemented Interfaces:
    java.util.concurrent.ThreadFactory
  Direct Known Subclasses:
    Exec.PrivilegedThreadFactory
  Enclosing class:
    Exec

      static class Exec.DefaultThreadFactory
      extends java.lang.Object
      implements java.util.concurrent.ThreadFactory

  Default thread factory. This follows `Executors#DefaultThreadFactory` closely to avoid unexpected behavior.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DefaultThreadFactory(java.lang.String baseName)` Constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.Thread` | `newThread(java.lang.Runnable r)`

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

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

- - ### Constructor Detail

    - #### DefaultThreadFactory

          DefaultThreadFactory(@NotNull
                               java.lang.String baseName)

      Constructor.
      Parameters:
        `baseName` - basic name used for threads created by this factory

  - ### Method Detail

    - #### newThread

          @NotNull
          public java.lang.Thread newThread(@NotNull
                                                     java.lang.Runnable r)

      Specified by:
        `newThread` in interface `java.util.concurrent.ThreadFactory`