Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 90884 invoked from network); 7 Feb 2010 16:34:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Feb 2010 16:34:52 -0000 Received: (qmail 63329 invoked by uid 500); 7 Feb 2010 16:34:51 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 63228 invoked by uid 500); 7 Feb 2010 16:34:51 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 63218 invoked by uid 99); 7 Feb 2010 16:34:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Feb 2010 16:34:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Feb 2010 16:34:49 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2D7F0234C052 for ; Sun, 7 Feb 2010 08:34:28 -0800 (PST) Message-ID: <1621339150.108551265560468184.JavaMail.jira@brutus.apache.org> Date: Sun, 7 Feb 2010 16:34:28 +0000 (UTC) From: "Oliver Heger (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (LANG-582) Provide an implementation of the ThreadFactory interface In-Reply-To: <1628739577.46081264537355722.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LANG-582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12830726#action_12830726 ] Oliver Heger commented on LANG-582: ----------------------------------- BasicThreadFactory is fine with me. > 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: lang-threadfactoryimpl.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.