Global lock - Cache

classic Classic list List threaded Threaded
4 messages Options
perez_25 perez_25
Reply | Threaded
Open this post in threaded view
|

Global lock - Cache

This post has NOT been accepted by the mailing list yet.
Hi,

Does ignite provide any method to check if one specified key is locked globaly (in another VM) ?

Best regards,

Sérgio Simões

afedotov afedotov
Reply | Threaded
Open this post in threaded view
|

Re: Global lock - Cache

Hi Sérgio,

Currently, there is no out-of-the-box way to do such a check, but you can send a closure to the primary node
for the given key and check if it's locked there.

On Tue, Feb 14, 2017 at 3:15 PM, perez_25 [via Apache Ignite Users] <[hidden email]> wrote:
Hi,

Does ignite provide any method to check if one specified key is locked globaly (in another VM) ?

Best regards,

Sérgio Simões




If you reply to this email, your message will be added to the discussion below:
http://apache-ignite-users.70518.x6.nabble.com/Global-lock-Cache-tp10630.html
To start a new topic under Apache Ignite Users, email [hidden email]
To unsubscribe from Apache Ignite Users, click here.
NAML



--
Kind regards,
Alexander.
vkulichenko vkulichenko
Reply | Threaded
Open this post in threaded view
|

Re: Global lock - Cache

I think it also worth mentioning that locally this check can be done via IgniteCache.isLocalLocked() method. On how to send a closure to primary node see this: https://apacheignite.readme.io/docs/affinity-collocation#collocating-compute-with-data

-Val
perez_25 perez_25
Reply | Threaded
Open this post in threaded view
|

Re: Global lock - Cache

This post has NOT been accepted by the mailing list yet.
Hi,

Thanks for the quick response.

Best regards,

Sérgio Simões