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