Package com.sun.corba.ee.spi.transport
Interface ByteBufferPool
-
- All Known Implementing Classes:
ByteBufferPoolImpl
public interface ByteBufferPool
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
activeCount()
java.nio.ByteBuffer
getByteBuffer(int theSize)
java.nio.ByteBuffer
reAllocate(java.nio.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(java.nio.ByteBuffer thebb)
-
-
-
Method Detail
-
getByteBuffer
java.nio.ByteBuffer getByteBuffer(int theSize)
-
releaseByteBuffer
void releaseByteBuffer(java.nio.ByteBuffer thebb)
-
activeCount
int activeCount()
-
reAllocate
java.nio.ByteBuffer reAllocate(java.nio.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
.- Parameters:
oldByteBuffer
- old buffer to take bytes fromminimumSize
- minimum size of Buffer- Returns:
- the new ByteBuffer
-
-