Package com.db4o.internal.freespace
Class InMemoryFreespaceManager
- java.lang.Object
-
- com.db4o.internal.freespace.AbstractFreespaceManager
-
- com.db4o.internal.freespace.InMemoryFreespaceManager
-
- All Implemented Interfaces:
FreespaceManager
public class InMemoryFreespaceManager extends AbstractFreespaceManager
-
-
Field Summary
-
Fields inherited from class com.db4o.internal.freespace.AbstractFreespaceManager
_slotFreedCallback, FM_BTREE, FM_DEBUG, FM_DEFAULT, FM_IX, FM_LEGACY_RAM, FM_RAM, REMAINDER_SIZE_LIMIT
-
-
Constructor Summary
Constructors Constructor Description InMemoryFreespaceManager(Procedure4<Slot> slotFreedCallback, int discardLimit, int remainderSizeLimit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Slot
allocateSafeSlot(int length)
Slot
allocateSlot(int length)
Slot
allocateTransactionLogSlot(int length)
void
beginCommit()
void
commit()
void
endCommit()
void
free(Slot slot)
void
freeSafeSlot(Slot slot)
void
freeSelf()
boolean
isStarted()
void
listener(FreespaceListener listener)
void
read(LocalObjectContainer container, Slot slot)
int
slotCount()
void
start(int id)
byte
systemType()
java.lang.String
toString()
void
traverse(Visitor4<Slot> visitor)
void
write(LocalObjectContainer container)
-
Methods inherited from class com.db4o.internal.freespace.AbstractFreespaceManager
checkType, createNew, createNew, debugCheckIntegrity, discardLimit, initSlot, migrate, migrateTo, migrationRequired, slotFreed, splitRemainder, totalFreespace
-
-
-
-
Constructor Detail
-
InMemoryFreespaceManager
public InMemoryFreespaceManager(Procedure4<Slot> slotFreedCallback, int discardLimit, int remainderSizeLimit)
-
-
Method Detail
-
allocateTransactionLogSlot
public Slot allocateTransactionLogSlot(int length)
-
allocateSafeSlot
public Slot allocateSafeSlot(int length)
-
freeSafeSlot
public void freeSafeSlot(Slot slot)
-
beginCommit
public void beginCommit()
-
commit
public void commit()
-
endCommit
public void endCommit()
-
free
public void free(Slot slot)
-
freeSelf
public void freeSelf()
-
allocateSlot
public Slot allocateSlot(int length)
-
read
public void read(LocalObjectContainer container, Slot slot)
-
slotCount
public int slotCount()
-
start
public void start(int id)
-
systemType
public byte systemType()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
write
public void write(LocalObjectContainer container)
-
listener
public void listener(FreespaceListener listener)
-
isStarted
public boolean isStarted()
-
-