Re: How to use transaction.commitAsync()?

2019-05-28 Thread aealexsandrov
Hi, Yes, it should be fine. https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/lang/IgniteFuture.html#listen-org.apache.ignite.lang.IgniteInClosure- BR, Andrei -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

How to use transaction.commitAsync()?

2019-05-23 Thread kimec.ethome.sk
Let's assume I need to update an item in a cache and then invoke commitAsync(). Is the following a valid code pattern? Transaction transaction = ignite.transactions().txStart(); cache.putAsync(key, value); // this cache.put(key, value); // or this transaction.commitAsync().listen(fut -> /* respo