Hi Trustin,
>You
can use the ByteBuffer as a key until it is returned back to the pool. It
will be returned when your messageSent() (or messageReceived()) method
returns. So we can say it is safe. If you want to prevent it from
being returned, you can call setPooled(false) on it.
Thats brilliant: If the buffer is released after
messageSent returned, then Im in business. I'll the buffer as the token as you
suggest.
Many thanks!
Dave
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
