public final class ByteBufferMemoryVolSingle extends ByteBufferVolSingle
Modifier and Type | Field and Description |
---|---|
protected boolean |
useDirectBuffer |
buffer, cleanerHackEnabled, maxSize, readOnly
closed, 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, sliceSize
assertZeroes, clearOverlap, copyFrom, copyTo, copyTo, deleteFile, fileLoad, finalize, getPackedLong, getSixLong, getUnsignedByte, getUnsignedShort, hash, isClosed, putPackedLong, putSixLong, putUnsignedByte, putUnsignedShort
public ByteBufferMemoryVolSingle(boolean useDirectBuffer, long maxSize, boolean cleanerHackEnabled)
public java.lang.String toString()
toString
in class java.lang.Object
public void close()
public boolean isReadOnly()
isReadOnly
in class Volume
public java.io.File getFile()
Volume
public boolean getFileLocked()
Volume
getFileLocked
in class Volume
Copyright © 2018. All Rights Reserved.