public class NonGloballyExclusiveClusterLockSupport extends AbstractClusterLockSupport
NOTE: This class does not support "upgrades", i.e. scenarios where a thread acquires the local lock and then while holding the local lock attempts to acquire the cluster-wide lock.
AbstractClusterLockSupport.RpcTargetRELEASE_REMOTE_LOCK_TYPES, REMOTE_LOCK_TYPES| Constructor and Description |
|---|
NonGloballyExclusiveClusterLockSupport(String serviceHAName,
GroupRpcDispatcher rpcDispatcher,
GroupMembershipNotifier membershipNotifier,
LocalLockHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
protected ClusterLockState |
getClusterLockState(Serializable categoryName) |
protected RemoteLockResponse |
getRemoteLockResponseForUnknownLock(Serializable lockName,
ClusterNode caller,
long timeout) |
protected RemoteLockResponse |
handleLockSuccess(ClusterLockState lockState,
ClusterNode caller) |
void |
unlock(Serializable lockId) |
protected RemoteLockResponse |
yieldLock(ClusterLockState lockState,
ClusterNode caller,
long timeout) |
getClusterLockState, getCurrentView, getGroupMembershipNotifier, getGroupName, getGroupRpcDispatcher, getLocalClusterNode, getLocalHandler, getLock, getServiceHAName, lock, membershipChanged, membershipChangedDuringMerge, recordLockHolder, removeLockState, start, stoppublic NonGloballyExclusiveClusterLockSupport(String serviceHAName, GroupRpcDispatcher rpcDispatcher, GroupMembershipNotifier membershipNotifier, LocalLockHandler handler)
public void unlock(Serializable lockId)
unlock in class AbstractClusterLockSupportprotected ClusterLockState getClusterLockState(Serializable categoryName)
getClusterLockState in class AbstractClusterLockSupportprotected RemoteLockResponse yieldLock(ClusterLockState lockState, ClusterNode caller, long timeout)
yieldLock in class AbstractClusterLockSupportprotected RemoteLockResponse handleLockSuccess(ClusterLockState lockState, ClusterNode caller)
handleLockSuccess in class AbstractClusterLockSupportprotected RemoteLockResponse getRemoteLockResponseForUnknownLock(Serializable lockName, ClusterNode caller, long timeout)
getRemoteLockResponseForUnknownLock in class AbstractClusterLockSupportCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.