is this the code tio support executor functionality:

*DefaultIoFilterChainBuilder chain = acceptor.getFilterChain();
       acceptor.setReuseAddress(true);*

> *
>        ThreadPoolExecutor threadPool = new
> ThreadPoolExecutor(1000,2000,* *600L,
>                TimeUnit.SECONDS,new ArrayBlockingQueue<Runnable>(**
> 1000),new
>                ThreadPoolExecutor.**CallerRunsPolicy());
>        int threadNum = threadPool.**prestartAllCoreThreads();
>      **  chain.addLast("threadPool", new ExecutorFilter(threadPool));*



or can you suggest me how to write executor which will help in this case.




On Wed, Jul 1, 2009 at 11:59 AM, Emmanuel Lecharny <[email protected]>wrote:

> Kumar Phani wrote:
>
>> I digg some thing ,my business logic will take 5 seconds to complete the
>> request(after messageReceived () method of handlerClass ).
>> so server not able to send the response back or not able to receive the
>> remaining requests.
>> I think u understand the scenario.
>>
>>
> Yep.
>
> This is typically the case you *need* to use an executor, as it will queue
> requests and allow more sessions to be processed in //.
>
> Have you tried this approach ?
> If so, do you still have the same problem ?
>
>
> --
> --
> cordialement, regards,
> Emmanuel Lécharny
> www.iktek.com
> directory.apache.org
>
>
>

Reply via email to