public abstract class AbstractLockManager extends Object implements LockManager
Modifier and Type | Field and Description |
---|---|
protected Configuration |
configuration |
protected long |
lockAcquisitionTimeout |
Constructor and Description |
---|
AbstractLockManager() |
Modifier and Type | Method and Description |
---|---|
Object |
getLockOwner(InvocationContext ctx)
Determines the owner to be used when obtaining locks, given an invocation context.
|
void |
injectConfiguration(Configuration configuration) |
void |
setLockAcquisitionTimeout() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getReadOwners, getReadOwners, getWriteOwner, getWriteOwner, isLocked, isLocked, isLocked, lock, lock, lock, lock, lockAll, lockAll, lockAll, lockAllAndRecord, lockAllAndRecord, lockAndRecord, lockAndRecord, ownsLock, ownsLock, ownsLock, printLockInfo, printLockInfo, unlock, unlock, unlock, unlockAll, unlockAll
protected Configuration configuration
protected long lockAcquisitionTimeout
public void injectConfiguration(Configuration configuration)
public void setLockAcquisitionTimeout()
public Object getLockOwner(InvocationContext ctx)
LockManager
GlobalTransaction
if one
is present in the context, or Thread.currentThread()
if one is not present.getLockOwner
in interface LockManager
ctx
- invocation contextCopyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.