org.jgroups.blocks

Class DistributedLockManager.LockDecree

public static class DistributedLockManager.LockDecree extends Object implements Serializable

This class represents the lock
Field Summary
protected booleancommited
protected ObjectlockId
protected ObjectmanagerId
protected Objectrequester
Method Summary
voidcommit()
booleanequals(Object other)
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)

Field Detail

commited

protected boolean commited

lockId

protected final Object lockId

managerId

protected final Object managerId

requester

protected final Object requester

Method Detail

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 ? 1998-2005 Bela Ban. All Rights Reserved.