Package com.linkedin.venice.utils.locks
Class ResourceAutoClosableLockManager<T>
java.lang.Object
com.linkedin.venice.utils.locks.ResourceAutoClosableLockManager<T>
- Type Parameters:
T
- Type of the resource
This class maintains a map from resource of a certain type to its lock. Its purpose is to support fine granular locking
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetLockForResource
(T resource) void
void
removeLockForResource
(T resource)
-
Constructor Details
-
ResourceAutoClosableLockManager
-
-
Method Details
-
getLockForResource
-
removeLockForResource
-
removeAllLocks
public void removeAllLocks()
-