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 intchildId()voidchildId(int id)voidclose()voidcommit(Visitable<SlotChange> slotChanges, FreespaceCommitter freespaceCommitter)SlotcommittedSlot(int id)voidcompleteInterruptedTransaction(int address, int length)intnewId()voidreturnUnusedIds(Visitable<java.lang.Integer> visitable)voidtraverseOwnSlots(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:
committedSlotin interfaceIdSystem
-
completeInterruptedTransaction
public void completeInterruptedTransaction(int address, int length)- Specified by:
completeInterruptedTransactionin interfaceIdSystem
-
returnUnusedIds
public void returnUnusedIds(Visitable<java.lang.Integer> visitable)
- Specified by:
returnUnusedIdsin interfaceIdSystem
-
childId
public int childId()
- Specified by:
childIdin interfaceStackableIdSystem
-
childId
public void childId(int id)
- Specified by:
childIdin interfaceStackableIdSystem
-
traverseOwnSlots
public void traverseOwnSlots(Procedure4<Pair<java.lang.Integer,Slot>> block)
- Specified by:
traverseOwnSlotsin interfaceIdSystem
-
-