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:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceRepresents an acquired lock on a cache key. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicate if this lock is read-only.lock()Acquire a lock on the cache key.Acquire a lock interruptibly on a cache key.
-
Method Details
-
isReadOnly
boolean isReadOnly()Indicate if this lock is read-only. -
lock
CacheKeyLock.LockAcquisition lock()Acquire a lock on the cache key. -
lockInterruptibly
Acquire a lock interruptibly on a cache key.- Throws:
InterruptedException- if the current thread was interrupted prior to or while waiting on the lock
-