Le 12/12/12 3:58 AM, Jon V a écrit :
> Hi Guys,
>
> I am trying to find out some information on how instances of the filter chain
> is created.
>
> 1. Is the filter chain assembled on the acceptor global or is a duplicate
> created for every session?
Every new session has its own copy of the filter's chain. Thsi is done
in the AbstractPollingIoProcessor.addNow( S session) method :
private boolean addNow(S session) {
boolean registered = false;
try {
init(session);
registered = true;
// Build the filter chain of this session.
IoFilterChainBuilder chainBuilder =
session.getService().getFilterChainBuilder();
chainBuilder.buildFilterChain(session.getFilterChain());
>
> 2. Does mina wait for an operation on a given session to complete before
> invoking the next one? (next polling interval)
Here, you have to be a bit more explicit. What do you mean by 'operation' ?
>
> both the decoder and encoder must be monotomic.
Sorry, 'monotomic' is a bit vague - or at least, it's not in my IT
dictionnary :-).
> I need to know if I should plan for enforcing single thread processing.
Again, a bit more of context could help...
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com