public class ExceptionSimulatingIdSystem extends DelegatingIdSystem
_delegate| Constructor and Description |
|---|
ExceptionSimulatingIdSystem(LocalObjectContainer container,
ExceptionFactory exceptionFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
commit(Visitable<SlotChange> slotChanges,
FreespaceCommitter freespaceCommitter) |
Slot |
committedSlot(int id) |
void |
completeInterruptedTransaction(int transactionId1,
int transactionId2) |
boolean |
isClosed() |
int |
newId() |
void |
triggerException(boolean exception) |
boolean |
triggersException() |
returnUnusedIds, traverseOwnSlotspublic ExceptionSimulatingIdSystem(LocalObjectContainer container, ExceptionFactory exceptionFactory)
public void triggerException(boolean exception)
public boolean triggersException()
public boolean isClosed()
public Slot committedSlot(int id)
committedSlot in interface IdSystemcommittedSlot in class DelegatingIdSystempublic int newId()
newId in interface IdSystemnewId in class DelegatingIdSystempublic void close()
close in interface IdSystemclose in class DelegatingIdSystempublic void completeInterruptedTransaction(int transactionId1,
int transactionId2)
completeInterruptedTransaction in interface IdSystemcompleteInterruptedTransaction in class DelegatingIdSystempublic void commit(Visitable<SlotChange> slotChanges, FreespaceCommitter freespaceCommitter)
commit in interface IdSystemcommit in class DelegatingIdSystem