On Fri, Aug 19, 2011 at 3:19 PM, Emmanuel Lecharny <[email protected]>wrote:
> On 8/19/11 2:16 PM, Alan D. Cabrera wrote: > >> I'm wondering. Do you guys think it's a good idea? It seems to make >> things pretty complicated and adds another dimension to groking the behavior >> of your service. I'm not sure that it's necessary. >> > Definitively a bad idea. > > What we need is an abstraction on top of an Array of ByteBuffer (the Java > NIO class), which extends the size by adding new ByteBuffer on the fly. > Exactly! +1 Perhaps it might be best to have a linked list of byte buffers internally in this MinaBuffer kind a thingy? > > The array must behave exactly as the ByteBuffer. > > +1 I wrote such a class 2 years ago, but I can't find the code. Will look again > on my USB keys this week-end. > > -- Best Regards, -- Alex
