Package net.sf.basedb.util
Class StaticCache.LockEntry
java.lang.Object
net.sf.basedb.util.StaticCache.LockEntry
- All Implemented Interfaces:
ReadWriteLock
- Enclosing class:
- StaticCache
Keeps track of a locked cached entry. The 'key' is the same key
instance that was used to create the entry in the first place.
It is important that all active maintainers of a lock also
keeps a strong reference to the key since the lock entry may
otherwise be reclaimed by the garbage collector.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
rwLock
-
keyRef
-
-
Constructor Details
-
LockEntry
LockEntry(ReadWriteLock rwLock, String key)
-
-
Method Details
-
writeLock
- Specified by:
writeLock
in interfaceReadWriteLock
-
readLock
- Specified by:
readLock
in interfaceReadWriteLock
-
getKey
-
toString
-