Klasse NameableThreadFactory

java.lang.Object
org.freedesktop.dbus.utils.NameableThreadFactory
Alle implementierten Schnittstellen:
ThreadFactory

public class NameableThreadFactory extends Object implements ThreadFactory
A thread factory which allows setting name, priority and daemon flag for all newly created threads.
  • Konstruktordetails

    • NameableThreadFactory

      public NameableThreadFactory(String _name, boolean _daemonizeThreads)
      Create a new ThreadFactory instance. The thread name is created like this: _name + THREAD_NUMBER e.g: connectionPool-1 If _name is null or blank, UnnamedThreadPool-POOL_NUMBER-thread-THREAD_NUMBER will be used.
      Parameter:
      _name - prefix for all thread names
      _daemonizeThreads - turn all created threads to daemon threads
    • NameableThreadFactory

      public NameableThreadFactory(String _name, boolean _daemonizeThreads, int _threadPriority)
      Create a new ThreadFactory instance. The thread name is created like this: _name + THREAD_NUMBER e.g: connectionPool-1 If _name is null or blank, UnnamedThreadPool-POOL_NUMBER-thread-THREAD_NUMBER will be used.
      Parameter:
      _name - prefix for all thread names
      _daemonizeThreads - turn all created threads to daemon threads
      _threadPriority - priority to use for new threads
      Seit:
      4.2.0 - 2022-07-13
  • Methodendetails