Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-582

Provide an implementation of the ThreadFactory interface

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.0
    • lang.concurrent.*
    • None

    Description

      The Executor framework in Java 1.5 uses the ThreadFactory interface for creating new threads on demand. Currently there is no base implementation of this interface. So if an application needs to configure threads used by an ExecutorService, it has to create a custom implementation.

      This is a proposal to add a default ThreadFactory implementation which allows an application to configure some options of the threads to be created. Especially the names of newly created threads and their daemon status can be configured. Maybe the configuration options can be extended, e.g. for specifying a priority or an uncaught exception handler.

      Attachments

        1. BasicThreadFactory.patch
          27 kB
          Oliver Heger

        Issue Links

          Activity

            People

              Unassigned Unassigned
              oheger Oliver Heger
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: