Yasdnil Zbib wrote:
Hi

I am just starting to get to grips with MINA 2.0, and have a question about the 
use of IOBuffer, which I hope someone can help me with.
Apologies up front for the newbie status of this:

When a ProtocolDecoder recieves an IOBuffer to decode I have read that my 
incoming message may not have been fully written,
and it is up to the decoder to handle this, druing the translation to my POJO.
right
But, if my message has been fully written - is the buffer likely tohave another 
message in it ?
absolutely

For example: say the IOBuffer is 650 bytes in length (and assume 
non-auto-expanding).
My inbound message is 300 bytes.

Once I have read the 300 bytes and converted to a POJO - will I ever see a 
second message in the IOBuffer, following on ?
you may have another message.

--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org


Reply via email to