Class DefaultThreadFactory

java.lang.Object
io.servicetalk.concurrent.api.DefaultThreadFactory
All Implemented Interfaces:
ThreadFactory

public final class DefaultThreadFactory extends Object implements ThreadFactory
A ThreadFactory implementation.
  • Field Details

    • DEFAULT_NAME_PREFIX

      public static final String DEFAULT_NAME_PREFIX
      The default prefix used for new thread names.
      See Also:
  • Constructor Details

    • DefaultThreadFactory

      public DefaultThreadFactory()
      New instance that creates daemon threads with Thread.NORM_PRIORITY priority.
    • DefaultThreadFactory

      public DefaultThreadFactory(boolean daemon)
      New instance that creates threads with Thread.NORM_PRIORITY priority.
      Parameters:
      daemon - true if the created threads should be daemons.
    • DefaultThreadFactory

      public DefaultThreadFactory(int priority)
      New instance that creates daemon threads.
      Parameters:
      priority - for the created threads.
    • DefaultThreadFactory

      public DefaultThreadFactory(String namePrefix)
      Create a new instance.
      Parameters:
      namePrefix - for all created threads.
    • DefaultThreadFactory

      public DefaultThreadFactory(boolean daemon, int priority)
      New instance.
      Parameters:
      daemon - true if the created threads should be daemons.
      priority - for the created threads.
    • DefaultThreadFactory

      public DefaultThreadFactory(String namePrefix, boolean daemon, int priority)
      New instance.
      Parameters:
      namePrefix - for all created threads.
      daemon - true if the created threads should be daemons.
      priority - for the created threads.
  • Method Details