Commit 5eb8911b authored by Ard Schrijvers's avatar Ard Schrijvers

CMS-10897 Also store the lock thread in Lock object

parent c896f52c
......@@ -23,11 +23,14 @@ public class Lock {
String lockOwner;
String lockThread;
long lockTime;
public Lock(final String lockKey, final String lockOwner, final long lockTime) {
public Lock(final String lockKey, final String lockOwner, final String lockThread, final long lockTime) {
this.lockKey = lockKey;
this.lockOwner = lockOwner;
this.lockThread = lockThread;
this.lockTime = lockTime;
}
......@@ -35,10 +38,20 @@ public class Lock {
return lockKey;
}
/**
* @return the cluster node id and in case of no clustering, it will be 'default'
*/
public String getLockOwner() {
return lockOwner;
}
/**
* @return the name of the thread that holds the lock
*/
public String getLockThread() {
return lockThread;
}
public long getLockTime() {
return lockTime;
}
......
......@@ -62,7 +62,7 @@ public interface LockManager {
List<Lock> getLocks();
/**
* Releases all locks and destroys this {@link LockManager}
* Releases all locks and destroys this {@link LockManager}.
*/
void destroy();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment