org.terracotta.collections
Class NullLockStrategy<K>
java.lang.Object
org.terracotta.collections.BasicLockStrategy<K>
org.terracotta.collections.NullLockStrategy<K>
- All Implemented Interfaces:
- LockStrategy<K>
public class NullLockStrategy<K>
- extends BasicLockStrategy<K>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NullLockStrategy
public NullLockStrategy()
generateLockIdForKey
public String generateLockIdForKey(String instanceQualifier,
K key)
- Description copied from interface:
LockStrategy
- Generate the terracotta lock identifier used when performing operations for the given key.
- Parameters:
instanceQualifier - A unique identifier for the map being operated on. To avoid lock collisions with other
maps, this identifier should be part of the return lockId
- Returns:
- lock identifier
beginLock
public void beginLock(String lockID,
int type)
- Specified by:
beginLock in interface LockStrategy<K>- Overrides:
beginLock in class BasicLockStrategy<K>
commitLock
public void commitLock(String lockID,
int type)
- Specified by:
commitLock in interface LockStrategy<K>- Overrides:
commitLock in class BasicLockStrategy<K>
unpinLock
public void unpinLock(String lockID)
- Specified by:
unpinLock in interface LockStrategy<K>- Overrides:
unpinLock in class BasicLockStrategy<K>
pinLock
public void pinLock(String lockID)
- Specified by:
pinLock in interface LockStrategy<K>- Overrides:
pinLock in class BasicLockStrategy<K>
tryBeginLock
public boolean tryBeginLock(String lockID,
int type,
long nanos)
- Specified by:
tryBeginLock in interface LockStrategy<K>- Overrides:
tryBeginLock in class BasicLockStrategy<K>
Copyright © 2010 Terracotta, Inc.. All Rights Reserved.