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
- Version:
- $Id: DistributedLockManager.java,v 1.9.4.2 2008/05/22 09:51:25 belaban Exp $
- Author:
- Roman Rokytskyy (rrokytskyy@acm.org), Robert Schaffar-Taurok (robert@fusion.at)
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidcommit()booleangetKey()Returns the key that should be used for Map lookup.inthashCode()This is hashcode from the java.lang.Long class.booleanbooleanisValid()This is a place-holder for future lock expiration code.voidsetMultipleLocked(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
-
equals
-