On 5/15/06, Michael Bauroth <[EMAIL PROTECTED]> wrote:

Hi Robert,

that's not the problem. In fact my question is a little bit
theoretically. I only try to understand, how the multithreaded queue
works. What I know is, that I can have more than one working thread
parallel, each of it with a different Bytebuffer from a different
session, which works concurently to the other threads.

But how works the data flow through the filters / decoders? One option
is, that they work like multiplexers, so that each thread pipes its data
sequentially through the same decoders. The other option is, that
because of the per session decoder each data packet runs through a
different decoder in a parallel manner. But how could I realize, that
each thread uses its own decoder instance (one per thread)?


Please implement your ProtocolCodecFactory.getEncoder() and getDecoder() to
return a new instance of ProtocolEncoder or ProtocolDecoder everytime the
method is invoked.

Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP key fingerprints:
* E167 E6AF E73A CBCE EE41  4A29 544D DE48 FE95 4E7E
* B693 628E 6047 4F8F CFA4  455E 1C62 A7DC 0255 ECA6

Reply via email to