aboutsummaryrefslogtreecommitdiffstats
path: root/music-core/src/main/java/org/onap/music/service/MusicCoreService.java
diff options
context:
space:
mode:
authorThomas Nelson (arthurdent3) <nelson24@att.com>2019-10-02 18:09:23 -0400
committerThomas Nelson (arthurdent3) <nelson24@att.com>2019-10-03 17:28:55 -0400
commit48b02dfdc78a6412d568a14b015ccb9439a1dbb5 (patch)
treeae9dfd7d47d643fcd7e1b4206b525ee0f98f1550 /music-core/src/main/java/org/onap/music/service/MusicCoreService.java
parenta681a9e295dc2b8f35dd42251f795d0079471ac0 (diff)
Update locking to use Threadsafe set
Had to create whole new method for Atomic Lock Creation. Added thread safe set to contol lock creation per key. Updated the deadlock to use local_quorum Removed some uneeded import Updated some logging. Issue-ID: MUSIC-512 Signed-off-by: Thomas Nelson (arthurdent3) <nelson24@att.com> Change-Id: I7e1a4c34de5dc9a0e90adf30d1f4d1bac698ceae Signed-off-by: Thomas Nelson (arthurdent3) <nelson24@att.com>
Diffstat (limited to 'music-core/src/main/java/org/onap/music/service/MusicCoreService.java')
-rw-r--r--music-core/src/main/java/org/onap/music/service/MusicCoreService.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/music-core/src/main/java/org/onap/music/service/MusicCoreService.java b/music-core/src/main/java/org/onap/music/service/MusicCoreService.java
index b3226906..7629eae2 100644
--- a/music-core/src/main/java/org/onap/music/service/MusicCoreService.java
+++ b/music-core/src/main/java/org/onap/music/service/MusicCoreService.java
@@ -89,14 +89,14 @@ public interface MusicCoreService {
* @param fullyQualifiedKey the key to create a lock on
* @see {@link #creatLockReference(String, LockType)}
*/
- public String createLockReference(String fullyQualifiedKey) throws MusicLockingException; // lock name
+ public String createLockReferenceAtomic(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 locktype the type of lock create, see {@link LockType}
*/
- public String createLockReference(String fullyQualifiedKey, LockType locktype) throws MusicLockingException;
+ public String createLockReferenceAtomic(String fullyQualifiedKey, LockType locktype) throws MusicLockingException;
/**
* Create a lock ref in the music lock store