Interface InMemoryNodeModel.TransactionInitializer
-
- Enclosing class:
- InMemoryNodeModel
private static interface InMemoryNodeModel.TransactionInitializer
An interface used internally for handling concurrent updates. An implementation has to populate the passed inModelTransaction
. The transaction is then executed, and an atomic update of the model'sTreeData
is attempted. If this fails - because another update came across -, the whole operation has to be tried anew.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
initTransaction(ModelTransaction tx)
Initializes the specified transaction for an update operation.
-
-
-
Method Detail
-
initTransaction
boolean initTransaction(ModelTransaction tx)
Initializes the specified transaction for an update operation. The return value indicates whether the transaction should be executed. A result of false means that the update is to be aborted (maybe another update method was called).- Parameters:
tx
- the transaction to be initialized- Returns:
- a flag whether the update should continue
-
-