TxnFieldUpdater leads to some boilerplate, which should be automated with a compiler plugin that processes a per-field annotation. The resulting fields would get transactional getters and setters, and also a getter that would produce a Ref instance for non-transactional access and more sophisticated operations.
TxnFieldUpdaterleads to some boilerplate, which should be automated with a compiler plugin that processes a per-field annotation. The resulting fields would get transactional getters and setters, and also a getter that would produce aRefinstance for non-transactional access and more sophisticated operations.