Package org.jgroups.blocks
Class DistributedLockManager.LockDecree
java.lang.Object
org.jgroups.blocks.DistributedLockManager.LockDecree
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DistributedLockManager.AcquireLockDecree
,DistributedLockManager.MultiLockDecree
,DistributedLockManager.ReleaseLockDecree
- Enclosing class:
DistributedLockManager
This class represents the lock
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
commit()
boolean
getKey()
Returns the key that should be used for Map lookup.int
hashCode()
This is hashcode from the java.lang.Long class.boolean
boolean
isValid()
This is a place-holder for future lock expiration code.void
setMultipleLocked
(boolean multipleLocked)
-
Field Details
-
lockId
-
requester
-
managerId
-
commited
protected boolean commited
-
-
Method Details
-
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. -
equals
-