You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by afedotov <al...@gmail.com> on 2017/02/15 19:16:00 UTC

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] <
ml-node+s70518n10630h64@n6.nabble.com> 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
> ml-node+s70518n1h65@n6.nabble.com
> To unsubscribe from Apache Ignite Users, click here
> <http://apache-ignite-users.70518.x6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1&code=YWxleGFuZGVyLmZlZG90b2ZmQGdtYWlsLmNvbXwxfC0xMzYxNTU0NTg=>
> .
> NAML
> <http://apache-ignite-users.70518.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>



-- 
Kind regards,
Alexander.




--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Global-lock-Cache-tp10630p10654.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Global lock - Cache

Posted by vkulichenko <va...@gmail.com>.
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



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Global-lock-Cache-tp10630p10657.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.