-
Enhancement
-
Resolution: Done
-
Major
-
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.