As you recommend, I am going to use heap buffers. And I will use the following sentences at the beginning of the project. IoBuffer.setUseDirectBuffer(false); IoBuffer.setAllocator(new SimpleBufferAllocator());
Thank you very much. ----- Original Message ----- From: "Emmanuel Lecharny" <[email protected]> To: <[email protected]> Sent: Wednesday, December 15, 2010 9:23 AM Subject: Re: Hello, a simple question > 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 > > > > > ____ KILL邮件安全网关 已经扫描了这封邮件 ____ > > >
