public class SimpleJournalingMemSpace extends SimpleJournalingDataIO implements MemDataSpace
Constructor and Description |
---|
SimpleJournalingMemSpace(MemDataSpace parent,
java.lang.Runnable flush,
int lgPageSize,
int maxDirtySpace,
long maxLogSize)
Currently only parents with matching pageSize must be used.
|
Modifier and Type | Method and Description |
---|---|
long |
allocate(int size,
boolean clear) |
long |
allocatedSize() |
close, commit, discard, flush, toString
read, read, read, readByte, readBytes, readBytes, readInt, readLong, readShort, write, write, write, writeByte, writeBytes, writeBytes, writeInt, writeLong, writeShort
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, fillLong, readBytes, readBytes, readInt, readLong, readShort, writeBytes, writeBytes, writeInt, writeLong, writeShort
public SimpleJournalingMemSpace(MemDataSpace parent, java.lang.Runnable flush, int lgPageSize, int maxDirtySpace, long maxLogSize)
parent
- flush
- log
- lgPageSize
- maxDirtySpace
- maxLogSize
- public long allocatedSize()
allocatedSize
in interface MemSpace