Le 1/30/14 4:45 AM, Shammi Jayasinghe a écrit :
> Hi Emmanuel,
>
> Thank you very much for the information and it helped me a lot. How ever, i
> could not found any document on how we can migrate the existing
> implementations.
>
> Could some one tell me what are the new classes we can find which did the
> earlier functionalities with following classes.
>
> org.apache.mina.util.NewThreadExecutor
> org.apache.mina.common.ExecutorThreadModel
Executors are now handled by the ExecutorFilter. You have two different
types of executor you can add into your filter :
- OrderedThreadPoolExecutor
- UnorderedThreadPoolExecutor
This is done this way :
OrderedThreadPoolExecutor executor = new
OrderedThreadPoolExecutor(0, 1000, 60, TimeUnit.SECONDS, THREAD_FACTORY);
acceptor.getFilterChain().addLast("threadPool", new
ExecutorFilter(executor));
> org.apache.mina.transport.socket.SocketConnector ( Now this has changed to
> an interface)
NioSocketConnector
> org.apache.mina.util.SessionUtil
> SocketConnectorConfig
> SocketSessionConfig
> SocketAcceptorConfig
These methods don't exist anymore. The configuration of a session is the
one you set in your service.
>
> Apart from that , i could not found an equal method for
> ByteBuffer.release() in IoBuffer.
free()
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com