Package ubic.gemma.persistence.cache
Interface CacheKeyLock
-
- All Known Implementing Classes:
EhcacheKeyLock
,StaticCacheKeyLock
public interface CacheKeyLock
Represents a lock over a cache key.- See Also:
Cache
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
CacheKeyLock.LockAcquisition
Represents an acquired lock on a cache key.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isReadOnly()
Indicate if this lock is read-only.CacheKeyLock.LockAcquisition
lock()
Acquire a lock on the cache key.CacheKeyLock.LockAcquisition
lockInterruptibly()
Acquire a lock interruptibly on a cache key.
-
-
-
Method Detail
-
isReadOnly
boolean isReadOnly()
Indicate if this lock is read-only.
-
lock
CacheKeyLock.LockAcquisition lock()
Acquire a lock on the cache key.
-
lockInterruptibly
CacheKeyLock.LockAcquisition lockInterruptibly() throws InterruptedException
Acquire a lock interruptibly on a cache key.- Throws:
InterruptedException
- if the current thread was interrupted prior to or while waiting on the lock
-
-