Re: Does IgniteCache.containsKey lock the key in a Transaction?

2019-08-22 Thread Denis Mekhanikov
k.lock(); > > cache.put("Hello", 11); > cache.put("World", 22); > } > finally { > // Release the lock > lock.unlock(); > } > > Regards, > Nattapon > > On Fri, Aug 16, 2019 at 5:23 PM Yohan Fernando <mailto:yohan.f

RE: Does IgniteCache.containsKey lock the key in a Transaction?

2019-08-19 Thread Yohan Fernando
Sent: 19 August 2019 08:00 To: user@ignite.apache.org Subject: Re: Does IgniteCache.containsKey lock the key in a Transaction? Caution: This email originated from outside of Tudor. Hi Yohan, There is IgniteCache.lock(key) method described in https://apacheignite.readme.io/docs/distributed-locks

Re: Does IgniteCache.containsKey lock the key in a Transaction?

2019-08-19 Thread nattapon
// Acquire the lock lock.lock(); cache.put("Hello", 11); cache.put("World", 22); } finally { // Release the lock lock.unlock(); } Regards, Nattapon On Fri, Aug 16, 2019 at 5:23 PM Yohan Fernando wrote: > Hi All, Does IgniteCache.containsKey()

Does IgniteCache.containsKey lock the key in a Transaction?

2019-08-16 Thread Yohan Fernando
Hi All, Does IgniteCache.containsKey() lock the key in a Transaction similar to IgniteCache.get() ? Basically I want a lightweight call to lock the key without having to Serialize objects from each node within a Transaction. _ This