Include owner in createLockRef
[music.git] / music-core / src / main / java / org / onap / music / service / MusicCoreService.java
index b322690..65b9885 100644 (file)
@@ -91,6 +91,13 @@ public interface MusicCoreService {
      */
     public String createLockReference(String fullyQualifiedKey) throws MusicLockingException; // lock name
 
+    /**
+     * Create a lock ref in the music lock store
+     * @param fullyQualifiedKey the key to create a lock on
+     * @param owner the owner of the lock, for deadlock prevention
+     */
+    public String createLockReference(String fullyQualifiedKey, String owner) throws MusicLockingException;
+    
     /**
      * Create a lock ref in the music lock store
      * @param fullyQualifiedKey the key to create a lock on
@@ -178,4 +185,5 @@ public interface MusicCoreService {
     public ReturnType deleteFromTable(JsonDelete jsonDeleteObj,MultivaluedMap<String, String> rowParams) 
             throws MusicLockingException, MusicQueryException, MusicServiceException;
 
+
 }