org.apache.hc.core5.concurrent

## Class DefaultThreadFactory

- java.lang.Object
- - org.apache.hc.core5.concurrent.DefaultThreadFactory

- All Implemented Interfaces:
    ThreadFactory

      public class DefaultThreadFactory
      extends Object
      implements ThreadFactory

  Default `ThreadFactory` implementation.
  Since:
    5.0

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DefaultThreadFactory(String namePrefix)`
    `DefaultThreadFactory(String namePrefix, boolean daemon)`
    `DefaultThreadFactory(String namePrefix, ThreadGroup group, boolean daemon)`

  - ### Method Summary

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

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

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

- - ### Constructor Detail

    - #### DefaultThreadFactory

          public DefaultThreadFactory(String namePrefix,
                              ThreadGroup group,
                              boolean daemon)

    - #### DefaultThreadFactory

          public DefaultThreadFactory(String namePrefix,
                              boolean daemon)

    - #### DefaultThreadFactory

          public DefaultThreadFactory(String namePrefix)

  - ### Method Detail

    - #### newThread

          public Thread newThread(Runnable target)

      Specified by:
        `newThread` in interface `ThreadFactory`

Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.