| java.lang.Object org.xsocket.connection.spi.AbstractMemoryManager
All known Subclasses: org.xsocket.connection.spi.UnsynchronizedMemoryManager, org.xsocket.connection.spi.SynchronizedMemoryManager,
AbstractMemoryManager | abstract class AbstractMemoryManager implements IMemoryManager(Code) | | implementation base for a Memory Manager implementation
author: grro@xsocket.org |
Constructor Summary | |
protected | AbstractMemoryManager(int preallocationSize, boolean preallocate, int minPreallocatedBufferSize, boolean useDirectMemory) |
AbstractMemoryManager | protected AbstractMemoryManager(int preallocationSize, boolean preallocate, int minPreallocatedBufferSize, boolean useDirectMemory)(Code) | | constructor
Parameters: allocationSize - the buffer to allocate Parameters: preallocate - true, if buffer should be preallocated Parameters: minPreallocatedBufferSize - the minimal buffer size Parameters: useDirectMemory - true, if direct memory should be used |
acquireMemoryMinSize | final public ByteBuffer acquireMemoryMinSize(int minSize)(Code) | | |
extractAndRecycleMemory | final public ByteBuffer extractAndRecycleMemory(ByteBuffer buffer, int read)(Code) | | |
getPreallocatedMinBufferSize | final public Integer getPreallocatedMinBufferSize()(Code) | | |
gettPreallocationBufferSize | final public Integer gettPreallocationBufferSize()(Code) | | |
isDirect | final public boolean isDirect()(Code) | | |
isPreallocationMode | final public boolean isPreallocationMode()(Code) | | |
newBuffer | final protected ByteBuffer newBuffer(int size)(Code) | | creates a new buffer
Parameters: size - the size of the new buffer the new buffer |
setDirect | final public void setDirect(boolean isDirect)(Code) | | |
setPreallocatedMinBufferSize | final public void setPreallocatedMinBufferSize(Integer minSize)(Code) | | |
setPreallocationBufferSize | final public void setPreallocationBufferSize(Integer minSize)(Code) | | |
setPreallocationMode | final public void setPreallocationMode(boolean mode)(Code) | | |
|
|