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?
Thanks,
Decebal
--
View this message in context:
http://www.nabble.com/Thread-Model-and-IoAcceptor-tf4431543s16868.html#a12642508
Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.