DistributedSegmentReadLocker stores reference counters in the cache to keep track of the number of clients still needing to be able to read a segment. It makes extensive usage of Infinispan's atomic operations.
Locks stored this way are not optimally performing as it might spin on remote invocations, and might fail to cleanup some garbage in case a node is disconnected without having released the readlock.
@author Sanne Grinovero @since 4.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|