Package com.sun.corba.ee.spi.transport
Interface ByteBufferPool
- All Known Implementing Classes:
ByteBufferPoolImpl
public interface ByteBufferPool
-
Method Summary
Modifier and TypeMethodDescriptionint
getByteBuffer
(int theSize) reAllocate
(ByteBuffer oldByteBuffer, int minimumSize) Return a newByteBuffer
of at leastminimumSize
and copy any bytes in theoldByteBuffer
starting atoldByteBuffer.position()
up tooldByteBuffer.limit()
into the returnedByteBuffer
.void
releaseByteBuffer
(ByteBuffer thebb)
-
Method Details
-
getByteBuffer
-
releaseByteBuffer
-
activeCount
int activeCount() -
reAllocate
Return a newByteBuffer
of at leastminimumSize
and copy any bytes in theoldByteBuffer
starting atoldByteBuffer.position()
up tooldByteBuffer.limit()
into the returnedByteBuffer
.- Parameters:
oldByteBuffer
- old buffer to take bytes fromminimumSize
- minimum size of Buffer- Returns:
- the new ByteBuffer
-