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 void
close()
getKey()
Obtain the key that is locked.boolean
Indicate if this lock acquisition is read-only.void
unlock()
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:
close
in interfaceAutoCloseable
-