|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.sasl.aop.distributed.lock.LockInformation
public class LockInformation
| Constructor Summary | |
|---|---|
LockInformation()
|
|
| Method Summary | |
|---|---|
int |
compareTo(LockInformation other)
Compares two LockInformations with each other. |
boolean |
equals(Object obj)
Two LockInformations are equal, if all data the instance variables point to is equal. |
String |
getLockKey()
|
int |
getLockOrderNumber()
|
long |
getMaxLockWaitTime()
|
int |
hashCode()
|
void |
setLockKey(String lockKey)
Sets the key (=mutex) that should get locked. |
void |
setLockOrderNumber(int orderNumber)
Sets the priority value of the lock. |
void |
setMaxLockWaitTime(long maxLockWaitTime)
Sets the maximum number of milliseconds to wait before the lock for the lock key is granted. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LockInformation()
| Method Detail |
|---|
public String getLockKey()
setLockKey(String)public void setLockKey(String lockKey)
lockKey - null or non null.public int getLockOrderNumber()
setLockOrderNumber(int)public void setLockOrderNumber(int orderNumber)
orderNumber - any integer value.public long getMaxLockWaitTime()
#setMaxLockWaitTime(int)
public void setMaxLockWaitTime(long maxLockWaitTime)
throws IllegalArgumentException
maxLockWaitTime - a value greater or equal to zero.
IllegalArgumentException - if parameter maxLockWaitTime is lesser than zero.public int compareTo(LockInformation other)
compareTo in interface Comparable<LockInformation>Comparable.compareTo(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||