You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Henri Yandell (JIRA)" <ji...@apache.org> on 2010/02/25 03:54:27 UTC

[jira] Closed: (LANG-582) Provide an implementation of the ThreadFactory interface

     [ https://issues.apache.org/jira/browse/LANG-582?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Yandell closed LANG-582.
------------------------------

    Resolution: Fixed

Had a spare cycle, so committed the patch:

svn ci -m "Adding BasicThreadFactory class. Same as Oliver's original patch in LANG-582, with an @since 3.0 added" src
Adding         src/main/java/org/apache/commons/lang3/concurrent/BasicThreadFactory.java
Adding         src/test/java/org/apache/commons/lang3/concurrent/BasicThreadFactoryTest.java
Transmitting file data ..
Committed revision 916095.


> Provide an implementation of the ThreadFactory interface
> --------------------------------------------------------
>
>                 Key: LANG-582
>                 URL: https://issues.apache.org/jira/browse/LANG-582
>             Project: Commons Lang
>          Issue Type: New Feature
>          Components: lang.concurrent.*
>            Reporter: Oliver Heger
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: BasicThreadFactory.patch
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.