ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Дмитрий Рябов <somefire...@gmail.com>
Subject IGNITE-4188: Savepoints support inside of Ignite Transactions, thoughts about realisation
Date Mon, 03 Apr 2017 12:37:37 GMT
Hello, community. Sam, Yakov, Alex G., can you look my decision?

try (Transaction tx = ignite.transactions().txStart()) {
    c.put(1, 1);


    c.put(2, 2);


    c.put(3, 3);


I want to make it in such way:

When user calls tx.savepoint(""), Transaction delegate call to
IgniteInternalTx, which delegate it to its IgniteTxState.

IgniteTxState implementation will contain stack of savepoints, where
Savepoint is class containing snapshot of cache entries and any important
additional information.

What do you think?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message