Hi Decebal,

On 9/13/07, Decebal Suiu <[EMAIL PROTECTED]> wrote:
>
> What is the diference between an IoAcceptor created with this code:
>
> IoAcceptor acceptor = new SocketAcceptor(Executors.newCachedThreadPool());
> DefaultIoFilterChainBuilder chain = acceptor.getFilterChain();
> chain.addLast("codec", new ObjectSerializationCodecFactory());
> acceptor.setHandler(new MyIoHandler());
>
> and one created with this code:
>
> IoAcceptor acceptor = new SocketAcceptor();
> DefaultIoFilterChainBuilder chain = acceptor.getFilterChain();
> chain.addLast("codec", new ObjectSerializationCodecFactory());
> chain.addLast("threadPool", new
> ExecutorFilter(Executors.newCachedThreadPool())
> acceptor.setHandler(new MyIoHandler());
>
> from Thread Model and performance point of view? How MyIoHandler is
> impacted?

We always recommend users to disable ThreadModel property and use an
ExecutorFilter.  Please refer to the following web page:

http://mina.apache.org/configuring-thread-model.html

HTH,
Trustin
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6

Reply via email to