Interface KeyedLock<K,V>
- All Superinterfaces:
AutoCloseable
A lock associated to an object that keeps track of how many threads are
currently using this lock until none are left in which case it removes itself.
These locks should be registered in a
KeyedLockMap.-
Method Details
-
getOrRetryValue
V getOrRetryValue() -
lock
@OverrideOnly void lock()Should not be called by users of lock. -
unlock
void unlock() -
close
void close()- Specified by:
closein interfaceAutoCloseable
-