|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| 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 | |
|---|---|
java.nio.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 |
|---|
java.nio.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
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||