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

Create locked InfinispanLock

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 15.0.0.Final
    • None
    • None
    • None

      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.

              pruivo@redhat.com Pedro Ruivo
              pruivo@redhat.com Pedro Ruivo
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: