|
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 |
java.lang.Objectcom.tangosol.util.Base
com.tangosol.io.nio.AbstractBufferManager
com.tangosol.io.nio.DirectBufferManager
public class DirectBufferManager
Manages a growable direct ByteBuffer.
ByteBuffer
Field Summary | |
---|---|
protected static boolean |
MODE_DEBUG
Set to true to use on-heap storage, false to use off-heap. |
Constructor Summary | |
---|---|
DirectBufferManager(int cbInitial,
int cbMaximum)
Construct a DirectBufferManager that supports a buffer of a certain initial and maximum size. |
Method Summary | |
---|---|
protected void |
allocateBuffer()
Allocate a new buffer, copying old data if there is any. |
Methods inherited from class com.tangosol.io.nio.AbstractBufferManager |
---|
calibrate, getBuffer, getCapacity, getGrowthThreshold, getMaxCapacity, getMaxIncrement, getMinCapacity, getShrinkageThreshold, grow, setBuffer, setCapacity, setGrowthThreshold, setMaxCapacity, setMinCapacity, setShrinkageThreshold, shrink |
Field Detail |
---|
protected static final boolean MODE_DEBUG
Constructor Detail |
---|
public DirectBufferManager(int cbInitial, int cbMaximum)
cbInitial
- the initial sizecbMaximum
- the maximum sizeMethod Detail |
---|
protected void allocateBuffer()
allocateBuffer
in class AbstractBufferManager
ByteBuffer.allocateDirect()
|
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 |