summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
a681a9e)
Change-Id: I7403f27b739259576419a380878cf0e263f9b8c6
Issue-ID: MUSIC-502
Signed-off-by: Tschaen, Brendan <ctschaen@att.com>
public class MusicDeadlockException extends MusicLockingException {
public class MusicDeadlockException extends MusicLockingException {
- public String owner = null;
- public String keyspace = null;
- public String table = null;
- public String key = null;
+ private String owner = null;
+ private String keyspace = null;
+ private String table = null;
+ private String key = null;
public MusicDeadlockException() {
super();
public MusicDeadlockException() {
super();
public static String createLockReference(String fullyQualifiedKey) throws MusicLockingException {
return musicCore.createLockReference(fullyQualifiedKey);
}
public static String createLockReference(String fullyQualifiedKey) throws MusicLockingException {
return musicCore.createLockReference(fullyQualifiedKey);
}
+
+ public static String createLockReference(String fullyQualifiedKey, String owner) throws MusicLockingException {
+ return musicCore.createLockReference(fullyQualifiedKey, owner);
+ }
public static String createLockReference(String fullyQualifiedKey, LockType locktype) throws MusicLockingException {
return musicCore.createLockReference(fullyQualifiedKey, locktype);
public static String createLockReference(String fullyQualifiedKey, LockType locktype) throws MusicLockingException {
return musicCore.createLockReference(fullyQualifiedKey, locktype);
*/
public String createLockReference(String fullyQualifiedKey) throws MusicLockingException; // lock name
*/
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
/**
* Create a lock ref in the music lock store
* @param fullyQualifiedKey the key to create a lock on
public ReturnType deleteFromTable(JsonDelete jsonDeleteObj,MultivaluedMap<String, String> rowParams)
throws MusicLockingException, MusicQueryException, MusicServiceException;
public ReturnType deleteFromTable(JsonDelete jsonDeleteObj,MultivaluedMap<String, String> rowParams)
throws MusicLockingException, MusicQueryException, MusicServiceException;
public String createLockReference(String fullyQualifiedKey) throws MusicLockingException {
return createLockReference(fullyQualifiedKey, LockType.WRITE);
}
public String createLockReference(String fullyQualifiedKey) throws MusicLockingException {
return createLockReference(fullyQualifiedKey, LockType.WRITE);
}
+ public String createLockReference(String fullyQualifiedKey, String owner) throws MusicLockingException {
+ return createLockReference(fullyQualifiedKey, LockType.WRITE, owner);
+ }
public String createLockReference(String fullyQualifiedKey, LockType locktype) throws MusicLockingException {
return createLockReference(fullyQualifiedKey, locktype, null);
public String createLockReference(String fullyQualifiedKey, LockType locktype) throws MusicLockingException {
return createLockReference(fullyQualifiedKey, locktype, null);