|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ByteBufferManager
An interface for managing a ByteBuffer.
Method Summary | |
---|---|
ByteBuffer |
getBuffer()
Get the current ByteBuffer reference. |
int |
getCapacity()
Get the capacity of the current ByteBuffer. |
int |
getGrowthThreshold()
Determine the level (what number of bytes used) above which the current ByteBuffer will need to be "resized" upwards. |
int |
getMaxCapacity()
Determine the maximum size that the managed buffer can reach. |
int |
getMinCapacity()
Determine the minimum size that the managed buffer can reach. |
int |
getShrinkageThreshold()
Determine the level (what number of bytes used) below which the current ByteBuffer will need to be "resized" downwards. |
void |
grow(int cbRequired)
Request that the buffer be grown based on the number of bytes currently required. |
void |
shrink(int cbRequired)
Request that the buffer be shrunk based on the number of bytes currently required. |
Method Detail |
---|
ByteBuffer getBuffer()
int getCapacity()
getBuffer().capacity()
.
int getGrowthThreshold()
int getShrinkageThreshold()
int getMinCapacity()
getCapacity
.
int getMaxCapacity()
getCapacity
.
void grow(int cbRequired)
cbRequired
- the number of bytes that are needed by the
requesting operationvoid shrink(int cbRequired)
cbRequired
- the number of contiguous bytes in the buffer,
starting from offset 0, that are actually in use
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |