1 Reply Latest reply on Jul 11, 2014 11:36 AM by William Burns

    Record based locking in infinispan

    Karminder Singh Newbie

      Hi,

      I am new to infinispan. I am trying to use infinispan database with multiple writers and readers. I need help on the following:

      1. Sample code that shows how to acquire locks on records in distributed mode. Also, how can this be done in replicated mode.

      2. If I make the infinispan cache persistent, will it be OK to use locking then also. What are the things I should keep in mind.

      3. Is there a way I can lock the whole infinispan cluster distributed across different nodes. The idea behind this is, I would like to acquire a set of records before performing operation and I want to ensure that only one process acquires all these locks.

       

      I could not find example codes, and descriptions for all the APIs. Please help if they are available.

      Thanks,

      Karm