[jbossts-issues] [JBoss JIRA] (JBTM-2458) Think of the possibility to improve Compensations API with lambdas
Gytis Trikleris (JIRA)
issues at jboss.org
Fri Jul 31 05:47:04 EDT 2015
[ https://issues.jboss.org/browse/JBTM-2458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13094555#comment-13094555 ]
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)
More information about the jbossts-issues
mailing list