Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-14794

Create locked InfinispanLock

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 15.0.0.Dev02, 15.0.0.Final
    • None
    • None
    • None

    Description

      Current pattern with an InfinispanLock is instantiated is

      InfinispanLock lock = new InfinispanLock(...)
      lock.acquire("owner", ..)
      

      The goal of this PR is to instantiate the InfinispanLock and the instance created is already locked and owned by the lock owner:

      InfinispanLock lock = new InfinispanLock("owner", ...)
      

      Another optimization is to create the pending queue lazily when the lock is contented.

      Attachments

        Activity

          People

            pruivo@redhat.com Pedro Ruivo
            pruivo@redhat.com Pedro Ruivo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: