mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <elecha...@gmail.com>
Subject Re: Hello, a simple question
Date Wed, 15 Dec 2010 01:23:47 GMT
On 12/15/10 2:03 AM, zhuhaofeng wrote:
> Hello, I have a simple question. I am making a project with MINA 2.0.1.
>
> Which buffers do I get by default, direct buffers or heap buffers?
The default is heap buffers.
> If I can get heap buffers by default, why do the MINA group recommend me use the sentence
"IoBuffer.setUseDirectBuffer(false);" to get heap buffers.
It does not, AFAICT. It's just given as an example on the Javadoc.

Whatever you want to do, using a direct buffer is something you should
not do, unless you have some very specific needs.

-- 
Regards,
Cordialement,
Emmanuel L├ęcharny
www.iktek.com


Mime
View raw message