org.jgroups.blocks

Class DistributedLockManager.LockDecree

Enclosing Class:
DistributedLockManager
Implemented Interfaces:
Serializable
Known Direct Subclasses:
DistributedLockManager.AcquireLockDecree, DistributedLockManager.MultiLockDecree, DistributedLockManager.ReleaseLockDecree

public static class DistributedLockManager.LockDecree
extends java.lang.Object
implements Serializable

This class represents the lock

Field Summary

protected boolean
commited
protected Object
lockId
protected Object
managerId
protected Object
requester

Method Summary

void
commit()
boolean
equals(Object other)
Object
getKey()
Returns the key that should be used for Map lookup.
int
hashCode()
This is hashcode from the java.lang.Long class.
boolean
isMultipleLocked()
boolean
isValid()
This is a place-holder for future lock expiration code.
void
setMultipleLocked(boolean multipleLocked)

Field Details

commited

protected boolean commited

lockId

protected final Object lockId

managerId

protected final Object managerId

requester

protected final Object requester

Method Details

commit

public void commit()

equals

public boolean equals(Object other)

getKey

public Object getKey()
Returns the key that should be used for Map lookup.

hashCode

public int hashCode()
This is hashcode from the java.lang.Long class.

isMultipleLocked

public boolean isMultipleLocked()
Returns:
Returns the multipleLocked.

isValid

public boolean isValid()
This is a place-holder for future lock expiration code.

setMultipleLocked

public void setMultipleLocked(boolean multipleLocked)
Parameters:
multipleLocked - The multipleLocked to set.

Copyright B) 1998-2005 Bela Ban. All Rights Reserved.