[
https://issues.jboss.org/browse/JBTM-2458?page=com.atlassian.jira.plugin....
]
Gytis Trikleris commented on JBTM-2458:
---------------------------------------
One of the Tom's suggestions during the Narayana f2f:
{code}
BusinessLogic foo = () -> collectionWrapper.updateOne();
tx.begin();
foo(); // annotations on it
tx.commit();
tx.begin();
tx.onFailure(compensationHandler).onSuccess(confirmationHandler).enlist(foo);
tx.onFailure(compensationHandler2).enlist(foo2);
tx.commit()
{code}
Think of the possibility to improve Compensations API with lambdas
------------------------------------------------------------------
Key: JBTM-2458
URL:
https://issues.jboss.org/browse/JBTM-2458
Project: JBoss Transaction Manager
Issue Type: Task
Components: TXFramework
Reporter: Gytis Trikleris
Assignee: Gytis Trikleris
Priority: Minor
Fix For: 5.next
Emmanuel suggested to reduce verbosity in Compensations API by making it possible to use
lambdas for handler implementation.
We should try to think of the best API changes to introduce that.
We could rewrite MongoDB quickstart to make it easier to visualise the difference.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)