public class TransactionalIdSystemImpl extends java.lang.Object implements TransactionalIdSystem
| Constructor and Description |
|---|
TransactionalIdSystemImpl(Closure4<FreespaceManager> freespaceManager,
Closure4<IdSystem> globalIdSystem,
TransactionalIdSystemImpl parentIdSystem) |
| Modifier and Type | Method and Description |
|---|---|
void |
accumulateFreeSlots(FreespaceCommitter accumulator,
boolean forFreespace) |
void |
clear() |
void |
close() |
void |
collectCallBackInfo(CallbackInfoCollector collector) |
void |
commit(FreespaceCommitter freespaceCommitter) |
Slot |
committedSlot(int id) |
void |
completeInterruptedTransaction(int transactionId1,
int transactionId2) |
Slot |
currentSlot(int id) |
boolean |
isDeleted(int id) |
boolean |
isDirty() |
Slot |
modifiedSlot(int id) |
Slot |
modifiedSlotInParentIdSystem(int id) |
int |
newId(SlotChangeFactory slotChangeFactory) |
void |
notifySlotCreated(int id,
Slot slot,
SlotChangeFactory slotChangeFactory) |
void |
notifySlotDeleted(int id,
SlotChangeFactory slotChangeFactory) |
void |
notifySlotUpdated(int id,
Slot slot,
SlotChangeFactory slotChangeFactory) |
void |
prefetchedIDConsumed(int id) |
int |
prefetchID() |
void |
rollback() |
public TransactionalIdSystemImpl(Closure4<FreespaceManager> freespaceManager, Closure4<IdSystem> globalIdSystem, TransactionalIdSystemImpl parentIdSystem)
public void collectCallBackInfo(CallbackInfoCollector collector)
collectCallBackInfo in interface TransactionalIdSystempublic boolean isDirty()
isDirty in interface TransactionalIdSystempublic void commit(FreespaceCommitter freespaceCommitter)
commit in interface TransactionalIdSystempublic void accumulateFreeSlots(FreespaceCommitter accumulator, boolean forFreespace)
accumulateFreeSlots in interface TransactionalIdSystempublic void completeInterruptedTransaction(int transactionId1,
int transactionId2)
public Slot committedSlot(int id)
committedSlot in interface TransactionalIdSystempublic Slot currentSlot(int id)
currentSlot in interface TransactionalIdSystempublic Slot modifiedSlot(int id)
public final Slot modifiedSlotInParentIdSystem(int id)
public void rollback()
rollback in interface TransactionalIdSystempublic void clear()
clear in interface TransactionalIdSystempublic boolean isDeleted(int id)
isDeleted in interface TransactionalIdSystempublic void notifySlotUpdated(int id,
Slot slot,
SlotChangeFactory slotChangeFactory)
notifySlotUpdated in interface TransactionalIdSystempublic int newId(SlotChangeFactory slotChangeFactory)
newId in interface TransactionalIdSystempublic int prefetchID()
prefetchID in interface TransactionalIdSystempublic void prefetchedIDConsumed(int id)
prefetchedIDConsumed in interface TransactionalIdSystempublic void notifySlotCreated(int id,
Slot slot,
SlotChangeFactory slotChangeFactory)
notifySlotCreated in interface TransactionalIdSystempublic void notifySlotDeleted(int id,
SlotChangeFactory slotChangeFactory)
notifySlotDeleted in interface TransactionalIdSystempublic void close()
close in interface TransactionalIdSystem