public interface LockingCache<K extends Serializable,V> extends SimpleCache<K,V>
Modifier and Type | Method and Description |
---|---|
boolean |
isValueLocked(K key)
Determine if a value (addition, removal or update) has been locked for the remainer of the transaction
|
void |
lockValue(K key)
Prevent a key's value from being changed for the duriation of the transaction.
|
void |
unlockValue(K key)
Cancel any previous lock applied to a key's value.
|
boolean isValueLocked(K key)
key
- the cache key to check up onvoid lockValue(K key)
key
- the cache key that will be locked against changevoid unlockValue(K key)
key
- the cache key that will be unlocked, allowing changesCopyright © 2005–2020 Alfresco Software. All rights reserved.