Package ubic.gemma.persistence.cache
Interface CacheKeyLock.LockAcquisition
- All Superinterfaces:
AutoCloseable
- Enclosing interface:
CacheKeyLock
Represents an acquired lock on a cache key.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose()getKey()Obtain the key that is locked.booleanIndicate if this lock acquisition is read-only.voidunlock()Release the lock on the cache key previously acquired withCacheKeyLock.lock()orCacheKeyLock.lockInterruptibly().
-
Method Details
-
getKey
Object getKey()Obtain the key that is locked. -
isReadOnly
boolean isReadOnly()Indicate if this lock acquisition is read-only. -
unlock
void unlock()Release the lock on the cache key previously acquired withCacheKeyLock.lock()orCacheKeyLock.lockInterruptibly(). -
close
default void close()- Specified by:
closein interfaceAutoCloseable
-