mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
MOB-434: Cluster-wide Locking Service
- DAO and unit tests (MOB-436) - MySQL and Derby scripts (MOB-438) - TODO: Oracle, PostgreSQL and SQLServer for Enterprise - TOD0: Wrap lock wait and lock retry behaviour git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13947 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -41,9 +41,9 @@ public class LockEntity
|
||||
private Long version;
|
||||
private Long sharedResourceId;
|
||||
private Long exclusiveResourceId;
|
||||
private String lockHolder;
|
||||
private String lockToken;
|
||||
private Long startTime;
|
||||
private Long expiryTime = Long.MAX_VALUE; // TODO:
|
||||
private Long expiryTime = Long.MIN_VALUE; // 'expired' unless set
|
||||
|
||||
@Override
|
||||
public int hashCode()
|
||||
@@ -144,19 +144,19 @@ public class LockEntity
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns the ID of the lock holder
|
||||
* @return Returns the token assigned when the lock was created
|
||||
*/
|
||||
public String getLockHolder()
|
||||
public String getLockToken()
|
||||
{
|
||||
return lockHolder;
|
||||
return lockToken;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param lockHolder the ID of the lock holder
|
||||
* @param lockToken the token assigned when the lock was created
|
||||
*/
|
||||
public void setLockHolder(String lockHolder)
|
||||
public void setLockToken(String lockToken)
|
||||
{
|
||||
this.lockHolder = lockHolder;
|
||||
this.lockToken = lockToken;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user