| Modifier and Type | Field and Description |
|---|---|
static long |
LOCK_TIMEOUT_INFINITE |
| Constructor and Description |
|---|
LockInfo(String token,
IRid rid,
LockDepthType depth,
LockScopeType scope,
LockKindType kind,
Date creationDate,
long timeout,
String owner)
Construct object of class LockInfo.
|
LockInfo(String token,
IRid rid,
LockDepthType depth,
LockScopeType scope,
LockKindType kind,
Date creationDate,
long timeout,
String owner,
String clientSuppliedOwner)
Construct object of class LockInfo.
|
LockInfo(String token,
IRid rid,
LockDepthType depth,
LockScopeType scope,
LockKindType kind,
long timeout,
String owner)
Construct object of class LockInfo.
|
LockInfo(String token,
IRid rid,
LockDepthType depth,
LockScopeType scope,
LockKindType kind,
long timeout,
String owner,
String clientSuppliedOwner)
Construct object of class LockInfo.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Check this and another object for equality.
|
String |
getClientSuppliedOwner()
Get client supplied owner for the lock.
|
Date |
getCreationDate()
Get creation date.
|
LockDepthType |
getDepth()
Get lock depth.
|
Date |
getExpirationDate()
Get lock expiration timestamp.
|
LockKindType |
getKind()
Get lock kind.
|
String |
getLockToken()
Get lock token.
|
String |
getOwner()
Returns the unique id of the lock owner.
|
IRid |
getRid()
Get resource id this lock info is valid for.
|
LockScopeType |
getScope()
Get lock scope.
|
long |
getTimeout()
Get lock timeout in milliseconds.
|
long |
getTimeRemaining()
Get time remaining until lock expires.
|
int |
hashCode()
Get hash code of this object.
|
void |
refreshExpirationDate()
reset the expiration period if timeout info is available
|
public static final long LOCK_TIMEOUT_INFINITE
public LockInfo(String token, IRid rid, LockDepthType depth, LockScopeType scope, LockKindType kind, long timeout, String owner)
token - lock token identifying the lockrid - resource id this lock is valid fordepth - LockDepthType of lockscope - LockScopeType of lockkind - LockKindType of locktimeout - lock timeout in millisecondsowner - owner for the lockpublic LockInfo(String token, IRid rid, LockDepthType depth, LockScopeType scope, LockKindType kind, Date creationDate, long timeout, String owner)
token - lock token identifying the lockrid - resource id this lock is valid fordepth - LockDepthType of lockscope - LockScopeType of lockkind - LockKindType of lockcreationDate - creation date of the locktimeout - lock timeout in millisecondsowner - owner for the lockpublic LockInfo(String token, IRid rid, LockDepthType depth, LockScopeType scope, LockKindType kind, long timeout, String owner, String clientSuppliedOwner)
token - lock token identifying the lockrid - resource id this lock is valid fordepth - LockDepthType of lockscope - LockScopeType of lockkind - LockKindType of locktimeout - lock timeout in millisecondsowner - owner for the lockclientSuppliedOwner - client supplied owner for the lockpublic LockInfo(String token, IRid rid, LockDepthType depth, LockScopeType scope, LockKindType kind, Date creationDate, long timeout, String owner, String clientSuppliedOwner)
token - lock token identifying the lockrid - resource id this lock is valid fordepth - LockDepthType of lockscope - LockScopeType of lockkind - LockKindType of lockcreationDate - creation date of the locktimeout - lock timeout in millisecondsowner - owner for the lockclientSuppliedOwner - client supplied owner for the lockpublic String getLockToken()
getLockToken in interface ILockInfopublic IRid getRid()
public LockDepthType getDepth()
getDepth in interface ILockInfoLockDepthType of lockpublic LockScopeType getScope()
getScope in interface ILockInfoLockScopeType of lockpublic LockKindType getKind()
getKind in interface ILockInfoLockKindType of lockpublic Date getCreationDate()
getCreationDate in interface ILockInfopublic Date getExpirationDate()
getExpirationDate in interface ILockInfopublic long getTimeRemaining()
getTimeRemaining in interface ILockInfo-1 for
"infinite").public long getTimeout()
getTimeout in interface ILockInfopublic String getOwner()
public String getClientSuppliedOwner()
getClientSuppliedOwner in interface ILockInfopublic boolean equals(Object obj)
equals in class Objectobj - object to compare this object withObject.equals(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()public void refreshExpirationDate()
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2021 SAP SE Complete Copyright Notice