Package org.jgroups.blocks
Class DistributedLockManager.LockDecree
- java.lang.Object
-
- org.jgroups.blocks.DistributedLockManager.LockDecree
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
DistributedLockManager.AcquireLockDecree,DistributedLockManager.MultiLockDecree,DistributedLockManager.ReleaseLockDecree
- Enclosing class:
- DistributedLockManager
public static class DistributedLockManager.LockDecree extends java.lang.Object implements java.io.SerializableThis class represents the lock- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommit()booleanequals(java.lang.Object other)java.lang.ObjectgetKey()Returns the key that should be used for Map lookup.inthashCode()This is hashcode from the java.lang.Long class.booleanisMultipleLocked()booleanisValid()This is a place-holder for future lock expiration code.voidsetMultipleLocked(boolean multipleLocked)
-
-
-
Method Detail
-
getKey
public java.lang.Object getKey()
Returns the key that should be used for Map lookup.
-
isValid
public boolean isValid()
This is a place-holder for future lock expiration code.
-
commit
public void commit()
-
isMultipleLocked
public boolean isMultipleLocked()
- Returns:
- Returns the multipleLocked.
-
setMultipleLocked
public void setMultipleLocked(boolean multipleLocked)
- Parameters:
multipleLocked- The multipleLocked to set.
-
hashCode
public int hashCode()
This is hashcode from the java.lang.Long class.- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
-