|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
K - key typepublic interface LockableMap<K>
Instances of LockableMap can have their individual entries independently locked and unlocked. This allows the implementation of atomic operations with arbitrary contents.
| Method Summary | |
|---|---|
ClusteredLock |
createFinegrainedLock(K key)
Obtain a fine-grained lock instance for a particular key. |
void |
lockEntry(K key)
Lock the entry corresponding to this key. |
void |
unlockEntry(K key)
Unlock the entry corresponding to this key |
| Method Detail |
|---|
ClusteredLock createFinegrainedLock(K key)
key - the key for which a fine-grained lock has to be constructed
void lockEntry(K key)
key - the key for which all entry accesses have to be lockedvoid unlockEntry(K key)
key - the key for which all entry accesses have to be unlocked
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||