public static final class Volume.MemoryVolSingle extends Volume.ByteBufferVolSingle
Volume.ByteArrayVol, Volume.ByteBufferVol, Volume.ByteBufferVolSingle, Volume.FileChannelVol, Volume.MappedFileVol, Volume.MappedFileVolSingle, Volume.MemoryVol, Volume.MemoryVolSingle, Volume.RandomAccessFileVol, Volume.ReadOnly, Volume.SingleByteArrayVol, Volume.VolumeFactory| Modifier and Type | Field and Description |
|---|---|
protected boolean |
useDirectBuffer |
buffer, cleanerHackEnabled, maxSize, readOnlyclosed, LOG, UNSAFE_VOL_FACTORY| Constructor and Description |
|---|
Volume.MemoryVolSingle(boolean useDirectBuffer,
long maxSize,
boolean cleanerHackEnabled) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
File |
getFile()
returns underlying file if it exists
|
boolean |
getFileLocked()
return true if this Volume holds exclusive lock over its file
|
long |
length() |
void |
sync() |
String |
toString() |
void |
truncate(long size) |
clear, ensureAvailable, getByte, getData, getDataInput, getDataInputOverlap, getInt, getLong, isSliced, putByte, putData, putData, putDataOverlap, putInt, putLong, sliceSize, transferIntoassertZeroes, copyEntireVolumeTo, deleteFile, fileLoad, finalize, getLongPackBidi, getLongPackBidiReverse, getPackedLong, getSixLong, getUnsignedByte, getUnsignedShort, hash, isClosed, putLongPackBidi, putPackedLong, putSixLong, putUnsignedByte, putUnsignedShort, volumeTransferpublic Volume.MemoryVolSingle(boolean useDirectBuffer,
long maxSize,
boolean cleanerHackEnabled)
public void close()
public File getFile()
Volumepublic boolean getFileLocked()
VolumegetFileLocked in class VolumeCopyright © 2015. All Rights Reserved.