org.usergrid.locking
Class LockHelper

java.lang.Object
  extended by org.usergrid.locking.LockHelper

public class LockHelper
extends Object

Author:
tnine

Constructor Summary
LockHelper()
           
 
Method Summary
static Lock getUniqueUpdateLock(LockManager manager, UUID applicationId, Object value, String... path)
          Build a string path for this lock.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockHelper

public LockHelper()
Method Detail

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.