directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From daune...@daune-consult.com
Subject Using Mina ByteBuffers
Date Thu, 21 Apr 2005 11:17:28 GMT
Hi,

I wonder what I have to do to use Mina ByteBuffer implementation in my
application (in ProtocolDecoder, in order to copy incoming bytes until a
complete message is received)

I especially wonder if I must acquire the buffer after calling
ByteBuffer.allocate (and then release it when work is done), or if
acquire/release is not needed.

There is some javadoc about it:

"Please note that you never need to release the allocated buffer because MINA
will release it automatically.
But, if you didn't pass it to MINA or called {@link #acquire()} by yourself, you
will have to release it manually"

But I don't understand what is meant by "pass to MINA".

Cheers,

J-F

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


Mime
View raw message