Return-Path: Delivered-To: apmail-mina-dev-archive@www.apache.org Received: (qmail 68397 invoked from network); 8 Dec 2006 16:31:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Dec 2006 16:31:40 -0000 Received: (qmail 60470 invoked by uid 500); 8 Dec 2006 16:31:47 -0000 Delivered-To: apmail-mina-dev-archive@mina.apache.org Received: (qmail 60448 invoked by uid 500); 8 Dec 2006 16:31:47 -0000 Mailing-List: contact dev-help@mina.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mina.apache.org Delivered-To: mailing list dev@mina.apache.org Received: (qmail 60439 invoked by uid 99); 8 Dec 2006 16:31:47 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Dec 2006 08:31:47 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of trustin@gmail.com designates 64.233.166.182 as permitted sender) Received: from [64.233.166.182] (HELO py-out-1112.google.com) (64.233.166.182) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Dec 2006 08:31:37 -0800 Received: by py-out-1112.google.com with SMTP id a25so423770pyi for ; Fri, 08 Dec 2006 08:30:42 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=uY8vKSVQFWSquZBc29hoDOZTSoin3AcgzMMyNtQ/Nv5YE2b3srlUQg4z24lNemf2qv8gkhrGqoMyLjW87t5VjKWZpuitS4Fj+69g7oaXeWePB5P6mX4bSWCCNW8U1s0fTNU9ZmNYi1/wmEKy5swvj+lXQoPAO5EW6dicvNO0BKA= Received: by 10.35.20.14 with SMTP id x14mr4007416pyi.1165595441823; Fri, 08 Dec 2006 08:30:41 -0800 (PST) Received: by 10.35.62.18 with HTTP; Fri, 8 Dec 2006 08:30:41 -0800 (PST) Message-ID: <768dcb2e0612080830o141232f8gab823d96e639a6d7@mail.gmail.com> Date: Sat, 9 Dec 2006 01:30:41 +0900 From: "Trustin Lee" To: dev@mina.apache.org Subject: Re: Is ThreadModel really useful? In-Reply-To: <45791A4C.2070004@falcom.de> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_65919_23024586.1165595441742" References: <768dcb2e0612072145t40294402ra95b241c7fd3f5a7@mail.gmail.com> <45791A4C.2070004@falcom.de> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_65919_23024586.1165595441742 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 12/8/06, Michael Bauroth wrote: > > Hi, > > in different tests I found out an temporary optimal solution for my > demands. It looks like: > > (using SimpleAllocator, HeapBuffer at the moment) > > mAcceptor = new SocketAcceptor( 2, Executors.newCachedThreadPool() ); > mAcceptor.setThreadModel(ThreadModel.MANUAL); > mAcceptor.getFilterChain().addLast( "CONNECTION_LIMITER", new > ConnectionLimitFilter( 30000 ) ); > mAcceptor.getFilterChain().addLast( "CODECS", new ProtocolCodecFilter( > new MultiStageCodecFactory()) ); > mAcceptor.getFilterChain().addLast( "THREADPOOL", new ExecutorFilter( > Executors.newFixedThreadPool( 4 ) ) ); > > What does your suggestions mean for this case? Will this config still be > available or do I have to change something? If we remove ThreadModel interface, removing the second line ( mAcceptor.setThreadModel(...)) will suffice. That's all. Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP key fingerprints: * E167 E6AF E73A CBCE EE41 4A29 544D DE48 FE95 4E7E * B693 628E 6047 4F8F CFA4 455E 1C62 A7DC 0255 ECA6 ------=_Part_65919_23024586.1165595441742--