You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Alexey Scherbakov (Jira)" <ji...@apache.org> on 2021/07/13 12:33:00 UTC

[jira] [Commented] (IGNITE-15086) Design a public tx API

    [ https://issues.apache.org/jira/browse/IGNITE-15086?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17379861#comment-17379861 ] 

Alexey Scherbakov commented on IGNITE-15086:
--------------------------------------------

Transaction examples can be found here [1]

Additionaly, the PR includes some code to propagate tx context into InternalTable, which later will be used to build up a transactional execution.

[1] https://github.com/apache/ignite-3/blob/d2a0003ac69058cddc36a1a6c8a57ada772ccff1/modules/table/src/test/java/org/apache/ignite/internal/table/TxTest.java

> Design a public tx API
> ----------------------
>
>                 Key: IGNITE-15086
>                 URL: https://issues.apache.org/jira/browse/IGNITE-15086
>             Project: Ignite
>          Issue Type: Task
>            Reporter: Alexey Scherbakov
>            Assignee: Alexey Scherbakov
>            Priority: Major
>              Labels: iep-61, ignite-3
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Design a public tx API.
> The proposed design includes async and sync APIs to execute a transaction.
> The transaction facade looks like this:
> {code}
> /**
>  * Ignite Transactions facade.
>  */
> public interface IgniteTransactions {
>     /**
>      * Begins the transaction.
>      *
>      * @return The future.
>      */
>     CompletableFuture<Transaction> beginAsync();
>     /**
>      * Synchronously executes a closure within a transaction.
>      *
>      * @param clo The closure.
>      */
>     void runInTransaction(Consumer<Transaction> clo);
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)