Package com.db4o.internal.ids
Class InMemoryIdSystem
- java.lang.Object
-
- com.db4o.internal.ids.InMemoryIdSystem
-
- All Implemented Interfaces:
IdSystem
,StackableIdSystem
public class InMemoryIdSystem extends java.lang.Object implements StackableIdSystem
-
-
Constructor Summary
Constructors Constructor Description InMemoryIdSystem(LocalObjectContainer container)
InMemoryIdSystem(LocalObjectContainer container, int maxValidId)
for testing purposes only.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
childId()
void
childId(int id)
void
close()
void
commit(Visitable<SlotChange> slotChanges, FreespaceCommitter freespaceCommitter)
Slot
committedSlot(int id)
void
completeInterruptedTransaction(int address, int length)
int
newId()
void
returnUnusedIds(Visitable<java.lang.Integer> visitable)
void
traverseOwnSlots(Procedure4<Pair<java.lang.Integer,Slot>> block)
-
-
-
Constructor Detail
-
InMemoryIdSystem
public InMemoryIdSystem(LocalObjectContainer container, int maxValidId)
for testing purposes only.
-
InMemoryIdSystem
public InMemoryIdSystem(LocalObjectContainer container)
-
-
Method Detail
-
commit
public void commit(Visitable<SlotChange> slotChanges, FreespaceCommitter freespaceCommitter)
-
committedSlot
public Slot committedSlot(int id)
- Specified by:
committedSlot
in interfaceIdSystem
-
completeInterruptedTransaction
public void completeInterruptedTransaction(int address, int length)
- Specified by:
completeInterruptedTransaction
in interfaceIdSystem
-
returnUnusedIds
public void returnUnusedIds(Visitable<java.lang.Integer> visitable)
- Specified by:
returnUnusedIds
in interfaceIdSystem
-
childId
public int childId()
- Specified by:
childId
in interfaceStackableIdSystem
-
childId
public void childId(int id)
- Specified by:
childId
in interfaceStackableIdSystem
-
traverseOwnSlots
public void traverseOwnSlots(Procedure4<Pair<java.lang.Integer,Slot>> block)
- Specified by:
traverseOwnSlots
in interfaceIdSystem
-
-