|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.netweaver.bc.rf.mi.lock.LockInfo
Class implementing lock information.
| Field Summary | |
static long |
LOCK_TIMEOUT_INFINITE
|
| Constructor Summary | |
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. |
|
| Method Summary | |
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 |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final long LOCK_TIMEOUT_INFINITE
| Constructor Detail |
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 lock
public 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 lock
public 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 lock
public 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 lock| Method Detail |
public String getLockToken()
getLockToken in interface ILockInfopublic IRid getRid()
getRid in interface ILockInfopublic 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()
getOwner in interface ILockInfopublic String getClientSuppliedOwner()
getClientSuppliedOwner in interface ILockInfopublic boolean equals(Object obj)
obj - object to compare this object with
Object.equals(java.lang.Object)public int hashCode()
Object.hashCode()public void refreshExpirationDate()
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||