public final class ByteBufferMemoryVolSingle extends ByteBufferVolSingle
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
useDirectBuffer |
buffer, cleanerHackEnabled, maxSize, readOnlyclosed, LOG, UNSAFE_VOL_FACTORY| Constructor and Description |
|---|
ByteBufferMemoryVolSingle(boolean useDirectBuffer,
long maxSize,
boolean cleanerHackEnabled) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.io.File |
getFile()
returns underlying file if it exists
|
boolean |
getFileLocked()
return true if this Volume holds exclusive lock over its file
|
boolean |
isReadOnly() |
long |
length() |
void |
sync() |
java.lang.String |
toString() |
void |
truncate(long size) |
clear, copyTo, ensureAvailable, getByte, getData, getDataInput, getDataInputOverlap, getInt, getLong, isSliced, putByte, putData, putData, putDataOverlap, putInt, putLong, sliceSizeassertZeroes, clearOverlap, copyFrom, copyTo, copyTo, deleteFile, fileLoad, finalize, getPackedLong, getSixLong, getUnsignedByte, getUnsignedShort, hash, isClosed, putPackedLong, putSixLong, putUnsignedByte, putUnsignedShortpublic ByteBufferMemoryVolSingle(boolean useDirectBuffer,
long maxSize,
boolean cleanerHackEnabled)
public java.lang.String toString()
toString in class java.lang.Objectpublic void close()
public boolean isReadOnly()
isReadOnly in class Volumepublic java.io.File getFile()
Volumepublic boolean getFileLocked()
VolumegetFileLocked in class VolumeCopyright © 2018. All Rights Reserved.