|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.object.LockInfo
Hides the structure of logical lock information.
Field Summary | |
static java.lang.String |
code_id
|
protected static java.lang.String |
LOCK_INFO_SEP
|
static int |
MAX_LOCKED_BY_LENGTH
|
Constructor Summary | |
LockInfo(java.lang.String lockInfoString)
Constructs a LockInfo object using a string value (typically obtained from a data store). |
|
LockInfo(java.lang.String lockedBy,
long timeoutMillis)
Constructs a LockInfo object using the specified values. |
Method Summary | |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getLockedBy()
Who owns this lock? |
long |
getTimeoutTime()
When will this lock expire? |
boolean |
isExpired()
Is this item lock expired? |
boolean |
isLocked()
Is this item locked? |
boolean |
isLockedBy(java.lang.String lockedBy)
Is this item locked by a specific caller? |
java.lang.String |
toString()
Render this LockInfo object as a string in a format suitable for storage as a property value. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
protected static final java.lang.String LOCK_INFO_SEP
public static final int MAX_LOCKED_BY_LENGTH
Constructor Detail |
public LockInfo(java.lang.String lockedBy, long timeoutMillis)
lockedBy
- - a string identifying the callerpublic LockInfo(java.lang.String lockInfoString) throws InvalidArgument
Method Detail |
public java.lang.String toString()
public boolean equals(java.lang.Object o)
public boolean isExpired()
public boolean isLocked()
public boolean isLockedBy(java.lang.String lockedBy)
public java.lang.String getLockedBy()
public long getTimeoutTime()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |