org.usergrid.locking
Class LockPathBuilder

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

public class LockPathBuilder
extends Object

Helper class that contains the logic to build a lock path

Author:
eanuff

Constructor Summary
LockPathBuilder()
           
 
Method Summary
static String buildPath(String binaryValue, String... path)
          Build a string path for this lock
static String buildPath(UUID applicationId, 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

LockPathBuilder

public LockPathBuilder()
Method Detail

buildPath

public static String buildPath(UUID applicationId,
                               String... path)
Build a string path for this lock

Parameters:
applicationId -
path -
Returns:

buildPath

public static String buildPath(String binaryValue,
                               String... path)
Build a string path for this lock

Parameters:
The - binary value to append to the end of the lock path
path - The values to prepend to build path
Returns:


Copyright © 2013. All Rights Reserved.