Hi,
at the moment there exist two basic possibilities to add a codec to a
chain. In one case there exists for every session one instance of the
decoder. In the other case I can return for the getDecoder() method in
the CodecFactory every time the same instance. At the moment I use the
second way.
My question now is, how can I handle that case, when I use instead of
SimpleByteBufferAllocator the normal ThreadPoolAllocator?
When I'm right, then I have now n parallel working threads with it's
separate own filterchain. Correct?
How can I now realize a behaviuour, that for each thread I have one own
decoder instance? Will each new working thread create it's own
filterchain with new instances of CodecFactory? Then would it mean, that
each of this factories creates it's own instance of the decoder, so all
should be fine. Is this the case?
Do you know what I mean? :)
Regards
Michael