November 2018
Beginner to intermediate
260 pages
6h 12m
English
The IgniteTransactions interface defines the APIs to enable ACID-compliant semantics when working with caches. We can start a transaction by calling the tx*****(...) methods on the IgniteTransactions
interface and work with one cache or across multiple caches.
Ignite transactions work on caches where the atomicity mode is CacheAtomicityMode.TRANSACTIONAL. By default, the atomicity mode is set to CacheAtomicityMode.ATOMIC.
The following example explores transactional behavior:
public class TransactionHelloWorld { private static final String MY_ATOMIC_CACHE = "myAtomicCache"; private static final String MY_TRANSACTIONAL_CACHE = "myTransactionalCache"; public static ...Read now
Unlock full access