org.optaplanner.core.impl.solver.thread

## Class DefaultSolverThreadFactory

- java.lang.Object
- - org.optaplanner.core.impl.solver.thread.DefaultSolverThreadFactory

- All Implemented Interfaces:
    ThreadFactory

      public class DefaultSolverThreadFactory
      extends Object
      implements ThreadFactory

  Similar to `Executors`'s DefaultThreadFactory, but allows settings a namePrefix.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DefaultSolverThreadFactory()`
    `DefaultSolverThreadFactory(String threadPrefix)`

  - ### Method Summary

    All Methods Instance Methods Concrete 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

    - #### DefaultSolverThreadFactory

          public DefaultSolverThreadFactory()

    - #### DefaultSolverThreadFactory

          public DefaultSolverThreadFactory(String threadPrefix)

  - ### Method Detail

    - #### newThread

          public Thread newThread(Runnable r)

      Specified by:
        `newThread` in interface `ThreadFactory`

Copyright © 2006–2020 JBoss by Red Hat. All rights reserved.