public static final class Volume.MemoryVol extends Volume.ByteBufferVol
Volume.ByteBufferVol, Volume.Factory, Volume.FileChannelVol, Volume.MappedFileVol, Volume.MemoryVol
Modifier and Type | Field and Description |
---|---|
protected boolean |
useDirectBuffer |
asyncWriteEnabled, chunks, chunkShift, chunkSize, chunkSizeModMask, growLock, hasLimit, readOnly, sizeLimit
Constructor and Description |
---|
MemoryVol(boolean useDirectBuffer,
long sizeLimit,
int chunkShift) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
deleteFile() |
File |
getFile()
returns underlying file if it exists
|
protected ByteBuffer |
makeNewBuffer(long offset) |
void |
sync() |
String |
toString() |
void |
truncate(long size) |
getByte, getDataInput, getInt, getLong, isEmpty, isSliced, putByte, putData, putData, putInt, putLong, tryAvailable, unmap
ensureAvailable, fileFactory, fileFactory, fileFactory, getPackedLong, getSixLong, getUnsignedByte, getUnsignedShort, memoryFactory, putPackedLong, putSixLong, putUnsignedByte, putUnsignedShort, volumeForFile, volumeForFile, volumeTransfer
public MemoryVol(boolean useDirectBuffer, long sizeLimit, int chunkShift)
protected ByteBuffer makeNewBuffer(long offset)
makeNewBuffer
in class Volume.ByteBufferVol
public void deleteFile()
deleteFile
in class Volume
Copyright © 2019. All rights reserved.