|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LocalLockHandler
Provides local lock coordination for an AbstractClusterLockSupport
.
Method Summary | |
---|---|
org.jboss.ha.framework.interfaces.ClusterNode |
getLocalNode(org.jboss.ha.framework.interfaces.ClusterNode localNode)
|
org.jboss.ha.framework.interfaces.ClusterNode |
getLockHolder(Serializable lockName)
Gets the node the holds the given lock on this node, or null
if no node holds the lock on this node. |
void |
lockFromCluster(Serializable lockName,
org.jboss.ha.framework.interfaces.ClusterNode caller,
long timeout)
Try to acquire the local lock within the given timeout. |
void |
setLocalNode(org.jboss.ha.framework.interfaces.ClusterNode localNode)
|
void |
unlockFromCluster(Serializable lockName,
org.jboss.ha.framework.interfaces.ClusterNode caller)
Release the lock. |
Method Detail |
---|
org.jboss.ha.framework.interfaces.ClusterNode getLockHolder(Serializable lockName)
null
if no node holds the lock on this node.
lockName
-
void lockFromCluster(Serializable lockName, org.jboss.ha.framework.interfaces.ClusterNode caller, long timeout) throws TimeoutException, InterruptedException
lockName
- the name of the lock.caller
- the node making the requesttimeout
- number of ms the caller will accept waiting before
the lock acquisition should be considered a failure.
A value less than one means wait as long as necessary.
TimeoutException
- if the lock could not be acquired within the
specified timeout
InterruptedException
void unlockFromCluster(Serializable lockName, org.jboss.ha.framework.interfaces.ClusterNode caller)
lockName
- the name of the lock.caller
- the node making the requestorg.jboss.ha.framework.interfaces.ClusterNode getLocalNode(org.jboss.ha.framework.interfaces.ClusterNode localNode)
void setLocalNode(org.jboss.ha.framework.interfaces.ClusterNode localNode)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |