public class ByteBufferPoolImpl extends Object implements ByteBufferPool
| Constructor and Description |
|---|
ByteBufferPoolImpl(ORB orb) |
| Modifier and Type | Method and Description |
|---|---|
int |
activeCount()
Get a count of the outstanding allocated DirectByteBuffers.
|
ByteBuffer |
getByteBuffer(int size)
Return a ByteBuffer of the requested size.
|
ByteBuffer |
reAllocate(ByteBuffer oldByteBuffer,
int minimumSize)
Return a new
ByteBuffer of at least minimumSize
and copy any bytes in the oldByteBuffer starting at
oldByteBuffer.position() up to oldByteBuffer.limit()
into the returned ByteBuffer. |
void |
releaseByteBuffer(ByteBuffer buffer) |
public ByteBufferPoolImpl(ORB orb)
public ByteBuffer getByteBuffer(int size)
getByteBuffer in interface ByteBufferPoolpublic void releaseByteBuffer(ByteBuffer buffer)
releaseByteBuffer in interface ByteBufferPoolpublic int activeCount()
activeCount in interface ByteBufferPoolpublic ByteBuffer reAllocate(ByteBuffer oldByteBuffer, int minimumSize)
ByteBuffer of at least minimumSize
and copy any bytes in the oldByteBuffer starting at
oldByteBuffer.position() up to oldByteBuffer.limit()
into the returned ByteBuffer.reAllocate in interface ByteBufferPoolCopyright © 2017–2019 Eclipse Foundation. All rights reserved.