|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Allocates ByteBuffers and manages them. Please implement this
interface if you need more advanced memory management scheme.
| Method Summary | |
ByteBuffer |
allocate(int capacity,
boolean direct)
Returns the buffer which is capable of the specified size. |
void |
dispose()
Dispose of this allocator. |
ByteBuffer |
wrap(ByteBuffer nioBuffer)
Wraps the specified NIO ByteBuffer into MINA buffer. |
| Method Detail |
public ByteBuffer allocate(int capacity,
boolean direct)
capacity - the capacity of the bufferdirect - true to get a direct buffer,
false to get a heap buffer.public ByteBuffer wrap(ByteBuffer nioBuffer)
ByteBuffer into MINA buffer.
public void dispose()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||