@Deprecated public class PessimisticNodeBasedLockManager extends NodeBasedLockManager
Modifier and Type | Class and Description |
---|---|
class |
PessimisticNodeBasedLockManager.LockAcquirer
Deprecated.
|
dataContainer, rootNode
configuration, lockAcquisitionTimeout
Constructor and Description |
---|
PessimisticNodeBasedLockManager()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
lockPessimistically(InvocationContext ctx,
Fqn fqn,
LockType lockType,
boolean createIfNotExists,
boolean zeroLockTimeout,
boolean acquireWriteLockOnParent,
boolean reverseRemoveCheck,
List<NodeSPI> createdNodes,
boolean skipNotification)
Deprecated.
A specific lock method for the PessimisticLockInterceptor.
|
getReadOwners, getReadOwners, getWriteOwner, getWriteOwner, inject, isLocked, isLocked, isLocked, lock, lock, lock, lock, lockAll, lockAll, lockAll, lockAllAndRecord, lockAllAndRecord, lockAndRecord, lockAndRecord, ownsLock, ownsLock, ownsLock, printLockInfo, printLockInfo, setRootNode, unlock, unlock, unlock, unlockAll, unlockAll
getLockOwner, injectConfiguration, setLockAcquisitionTimeout
public PessimisticNodeBasedLockManager()
public boolean lockPessimistically(InvocationContext ctx, Fqn fqn, LockType lockType, boolean createIfNotExists, boolean zeroLockTimeout, boolean acquireWriteLockOnParent, boolean reverseRemoveCheck, List<NodeSPI> createdNodes, boolean skipNotification) throws InterruptedException
fqn
- Fqn to locklockType
- Type of lock to acquirectx
- invocation contextcreateIfNotExists
- if true, nodes will be created if they do not exist.zeroLockTimeout
- if true uses 0 as a lock acquisition timeoutacquireWriteLockOnParent
- if true, write locks are acquired on parent nodes when child nodes need write locks.reverseRemoveCheck
- if true, nodes that have been marked as removed in the current transaction may be reversed.createdNodes
- a list to which nodes created in this method may be added.skipNotification
- if true, node creation notifications are suppressed.InterruptedException
- if interruptedCopyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.