Modifier and Type | Field and Description |
---|---|
static Long |
CONST_LONG_ZERO |
Constructor and Description |
---|
LockEntity() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Long |
getExclusiveResourceId() |
Long |
getExpiryTime() |
Long |
getId() |
String |
getLockToken() |
Long |
getSharedResourceId() |
Long |
getStartTime() |
Long |
getVersion() |
boolean |
hasExpired() |
int |
hashCode() |
void |
incrementVersion()
Increments the version number or resets it if it reaches a large number
|
boolean |
isExclusive()
Determine if the lock is logically exclusive.
|
void |
setExclusiveResourceId(Long exclusiveResourceId) |
void |
setExpiryTime(Long expiryTime) |
void |
setId(Long id) |
void |
setLockToken(String lockToken) |
void |
setSharedResourceId(Long sharedResourceId) |
void |
setStartTime(Long startTime) |
void |
setVersion(Long version) |
String |
toString() |
public static final Long CONST_LONG_ZERO
public boolean isExclusive()
public boolean hasExpired()
public Long getId()
public void setId(Long id)
public Long getVersion()
public void setVersion(Long version)
public void incrementVersion()
public Long getSharedResourceId()
public void setSharedResourceId(Long sharedResourceId)
sharedResourceId
- the ID of the shared lock resourcepublic Long getExclusiveResourceId()
public void setExclusiveResourceId(Long exclusiveResourceId)
public String getLockToken()
public void setLockToken(String lockToken)
lockToken
- the token assigned when the lock was createdpublic Long getStartTime()
public void setStartTime(Long startTime)
public Long getExpiryTime()
public void setExpiryTime(Long expiryTime)
Copyright © 2005–2017 Alfresco Software. All rights reserved.