Hi all,

I am debugging an application that is using mina 0.8.1
and I would like some confirmation about ProtocolDecoder.decode

Is it guaranteed that no other threads will access the given ByteBuffer
during the execution of the ProtocolDecoder.decode ?

In other words, will this always work:

void decode( ProtocolSession session, ByteBuffer in,  ProtocolDecoderOutput
out ) throws ProtocolViolationException;
{
   int r1 = in.remaining();
   Thread.sleep(50000);
   int r2 = in.remaining();
   assert (r1 ==  r2);
}

Thanks
Maarten

Reply via email to