@Override
public void messageReceived(NextFilter nextFilter, IoSession session, Object message) throws Exception
{
}
I need to read the message as a byte stream. But it does not guarantee to have the full message is received. I need to discard the messages which contains less than 16 bytes. When ever the whole length of bytes reached 16 I need to decode and use them. And in any case if it called with 17 bytes, then I need to process only 16 and leave the other one for the next cycle. Is reset() and mark() help me on this. Is there any way that I can ask mina to buffer that. Or do I have to use my own buffer ?