Should return true if the end-of-life transaction txn should commit,
false if it should roll back.
Should return true if the end-of-life transaction txn should commit,
false if it should roll back. Txn.rollback may also be used to
initiate a rollback if that is more convenient. Called while the
status is Prepared. This method may not access any Refs, even via
Ref.single.
(Since version ) see corresponding Javadoc for more information.
An
ExternalDecideris given the final control over the decision of whether or not to commit a transaction, which allows two-phase commit to be integrated with a single non-transactional resource.shouldCommitwill only be called if aInTxnhas successfully called all of its before-commit handlers, acquired all necessary write locks, validated all of its reads and called all of its while-preparing handlers. The decider may then attempt a non-transactional operation whose outcome is uncertain, and based on the outcome may directly cause the transaction to commit or roll back.