org.jboss.cache.lock
Class AbstractLockManager
java.lang.Object
org.jboss.cache.lock.AbstractLockManager
- All Implemented Interfaces:
- LockManager
- Direct Known Subclasses:
- FqnLockManager, NodeBasedLockManager
public abstract class AbstractLockManager
- extends Object
- implements LockManager
Common lock manager functionality
- Since:
- 3.0
- Author:
- Manik Surtani (manik AT jboss DOT org)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.cache.lock.LockManager |
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 |
configuration
protected Configuration configuration
lockAcquisitionTimeout
protected long lockAcquisitionTimeout
AbstractLockManager
public AbstractLockManager()
injectConfiguration
public void injectConfiguration(Configuration configuration)
setLockAcquisitionTimeout
public void setLockAcquisitionTimeout()
getLockOwner
public Object getLockOwner(InvocationContext ctx)
- Description copied from interface:
LockManager
- Determines the owner to be used when obtaining locks, given an invocation context. This is typically a
GlobalTransaction
if one
is present in the context, or Thread.currentThread()
if one is not present.
- Specified by:
getLockOwner
in interface LockManager
- Parameters:
ctx
- invocation context
- Returns:
- owner to be used for acquiring locks.
Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.