Class StaticCacheKeyLock

java.lang.Object
ubic.gemma.persistence.cache.StaticCacheKeyLock
All Implemented Interfaces:
CacheKeyLock

public class StaticCacheKeyLock extends Object implements CacheKeyLock
Implementation of the CacheKeyLock interface that uses a static week map to store locks by key.

Locks are guaranteed to be kept around as long as there is a CacheKeyLock.LockAcquisition referring to it, otherwise they might be freed by the GC.

Author:
poirigui
See Also: