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 intactiveCount()java.nio.ByteBuffergetByteBuffer(int theSize)java.nio.ByteBufferreAllocate(java.nio.ByteBuffer oldByteBuffer, int minimumSize)Return a newByteBufferof at leastminimumSizeand copy any bytes in theoldByteBufferstarting atoldByteBuffer.position()up tooldByteBuffer.limit()into the returnedByteBuffer.voidreleaseByteBuffer(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 newByteBufferof at leastminimumSizeand copy any bytes in theoldByteBufferstarting atoldByteBuffer.position()up tooldByteBuffer.limit()into the returnedByteBuffer.- Parameters:
oldByteBuffer- old buffer to take bytes fromminimumSize- minimum size of Buffer- Returns:
- the new ByteBuffer
-
-