Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 81058 invoked from network); 14 Dec 2007 21:38:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Dec 2007 21:38:08 -0000 Received: (qmail 83266 invoked by uid 500); 14 Dec 2007 21:37:56 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 83221 invoked by uid 500); 14 Dec 2007 21:37:56 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 83210 invoked by uid 99); 14 Dec 2007 21:37:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Dec 2007 13:37:55 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Dec 2007 21:37:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2392371420E for ; Fri, 14 Dec 2007 13:37:43 -0800 (PST) Message-ID: <29662603.1197668263143.JavaMail.jira@brutus> Date: Fri, 14 Dec 2007 13:37:43 -0800 (PST) From: "Sangjin Lee (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Created: (GERONIMO-3707) use Executor rather than ExecutorService for thread pools that are passed into AsyncHttpClient MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org use Executor rather than ExecutorService for thread pools that are passed into AsyncHttpClient ---------------------------------------------------------------------------------------------- Key: GERONIMO-3707 URL: https://issues.apache.org/jira/browse/GERONIMO-3707 Project: Geronimo Issue Type: Improvement Security Level: public (Regular issues) Components: AsyncHttpClient Affects Versions: 1.x Reporter: Sangjin Lee Priority: Minor Currently AsyncHttpClient takes an ExecutorService as an argument for the thread pool that gets passed into the SocketConnector constructor. Also, it uses ExecutorService as the type for the event thread pool which is passed to the ExecutorFilter. In both cases, Mina APIs actually take simply Executor. Therefore, it is possible to simply pass in Executor rather than ExecutorService. This is very helpful because the caller may need to retrofit existing thread pool implementations. Implementing Executor is considerably easier than ExecutorService. One implication of this change is that AsyncHttpClient will no longer "own" and manage the thread pool that gets passed in. I believe that is also OK as the caller can (and perhaps should) handle the lifecycle of a thread pool that it created. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.