Package com.db4o.internal.transactionlog
Class TransactionLogHandler
- java.lang.Object
-
- com.db4o.internal.transactionlog.TransactionLogHandler
-
- Direct Known Subclasses:
EmbeddedTransactionLogHandler
,FileBasedTransactionLogHandler
public abstract class TransactionLogHandler extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected LocalObjectContainer
_container
-
Constructor Summary
Constructors Modifier Constructor Description protected
TransactionLogHandler(LocalObjectContainer container)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Slot
allocateSlot(boolean append, int slotChangeCount)
protected void
appendSlotChanges(ByteArrayBuffer writer, Visitable slotChangeVisitable)
abstract void
applySlotChanges(Visitable<SlotChange> slotChangeTree, int slotChangeCount, Slot reservedSlot)
abstract void
close()
abstract void
completeInterruptedTransaction(int transactionId1, int transactionId2)
protected void
flushDatabaseFile()
protected LocalObjectContainer
localContainer()
protected void
readWriteSlotChanges(ByteArrayBuffer buffer)
protected int
transactionLogSlotLength(int slotChangeCount)
protected boolean
writeSlots(Visitable<SlotChange> slotChangeTree)
-
-
-
Field Detail
-
_container
protected final LocalObjectContainer _container
-
-
Constructor Detail
-
TransactionLogHandler
protected TransactionLogHandler(LocalObjectContainer container)
-
-
Method Detail
-
localContainer
protected LocalObjectContainer localContainer()
-
flushDatabaseFile
protected final void flushDatabaseFile()
-
appendSlotChanges
protected final void appendSlotChanges(ByteArrayBuffer writer, Visitable slotChangeVisitable)
-
writeSlots
protected boolean writeSlots(Visitable<SlotChange> slotChangeTree)
-
transactionLogSlotLength
protected final int transactionLogSlotLength(int slotChangeCount)
-
allocateSlot
public abstract Slot allocateSlot(boolean append, int slotChangeCount)
-
applySlotChanges
public abstract void applySlotChanges(Visitable<SlotChange> slotChangeTree, int slotChangeCount, Slot reservedSlot)
-
completeInterruptedTransaction
public abstract void completeInterruptedTransaction(int transactionId1, int transactionId2)
-
close
public abstract void close()
-
readWriteSlotChanges
protected void readWriteSlotChanges(ByteArrayBuffer buffer)
-
-