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, cleanerHackDisabled, growLock, hasLimit, readOnly, sizeLimit| Constructor and Description |
|---|
MemoryVol(boolean useDirectBuffer,
long sizeLimit,
int chunkShift) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
deleteFile() |
java.io.File |
getFile()
returns underlying file if it exists
|
protected java.nio.ByteBuffer |
makeNewBuffer(long offset) |
void |
sync() |
java.lang.String |
toString() |
void |
truncate(long size) |
getByte, getDataInput, getInt, getLong, isEmpty, isSliced, putByte, putData, putData, putInt, putLong, tryAvailable, unmapensureAvailable, fileFactory, fileFactory, fileFactory, fileFactory, getPackedLong, getSixLong, getUnsignedByte, getUnsignedShort, memoryFactory, putPackedLong, putSixLong, putUnsignedByte, putUnsignedShort, volumeForFile, volumeForFile, volumeForFile, volumeTransferpublic MemoryVol(boolean useDirectBuffer,
long sizeLimit,
int chunkShift)
public java.lang.String toString()
toString in class java.lang.Objectprotected java.nio.ByteBuffer makeNewBuffer(long offset)
makeNewBuffer in class Volume.ByteBufferVolpublic void deleteFile()
deleteFile in class Volume