org.javagroups.blocks
Class DistributedLockManager.LockDecree
java.lang.Object
|
+--org.javagroups.blocks.DistributedLockManager.LockDecree
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- DistributedLockManager.AcquireLockDecree, DistributedLockManager.ReleaseLockDecree
- Enclosing class:
- DistributedLockManager
- public static class DistributedLockManager.LockDecree
- extends java.lang.Object
- implements java.io.Serializable
This class represents the lock
- See Also:
- Serialized Form
Method Summary |
void |
commit()
|
boolean |
equals(java.lang.Object other)
|
java.lang.Object |
getKey()
Returns the key that should be used for Map lookup. |
int |
hashCode()
This is hashcode from the java.lang.Long class. |
boolean |
isValid()
This is a place-holder for future lock expiration code. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
lockId
protected java.lang.Object lockId
requester
protected java.lang.Object requester
managerId
protected java.lang.Object managerId
commited
protected boolean commited
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()
hashCode
public int hashCode()
- This is hashcode from the java.lang.Long class.
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in class java.lang.Object
Copyright © 2001,2002 www.javagroups.com . All Rights Reserved.