org.usergrid.locking
Class LockHelper
java.lang.Object
org.usergrid.locking.LockHelper
public class LockHelper
- extends Object
- Author:
- tnine
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LockHelper
public LockHelper()
getUniqueUpdateLock
public static Lock getUniqueUpdateLock(LockManager manager,
UUID applicationId,
Object value,
String... path)
throws UGLockException
- Build a string path for this lock. Since it's specifically for updating a property, the property
needs appended to the path. If the property is null, it's getting deleted, so a lock on it isn't
neccessary. In that case, a no op lock is returned
- Parameters:
applicationId
- path
-
- Returns:
-
- Throws:
UGLockException
Copyright © 2013. All Rights Reserved.