Package ubic.gemma.persistence.cache
Interface CacheKeyLock.LockAcquisition
-
- All Superinterfaces:
AutoCloseable
- Enclosing interface:
- CacheKeyLock
public static interface CacheKeyLock.LockAcquisition extends AutoCloseable
Represents an acquired lock on a cache key.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidclose()ObjectgetKey()Obtain the key that is locked.booleanisReadOnly()Indicate if this lock acquisition is read-only.voidunlock()Release the lock on the cache key previously acquired withCacheKeyLock.lock()orCacheKeyLock.lockInterruptibly().
-
-
-
Method Detail
-
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
-
-