org.terracotta.collections
Class OneToOneLockStrategy
java.lang.Object
org.terracotta.collections.BasicLockStrategy<String>
org.terracotta.collections.OneToOneLockStrategy
- All Implemented Interfaces:
- LockStrategy<String>
public class OneToOneLockStrategy
- extends BasicLockStrategy<String>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OneToOneLockStrategy
public OneToOneLockStrategy()
generateLockIdForKey
public String generateLockIdForKey(String instanceQualifier,
String 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
Copyright © 2010 Terracotta, Inc.. All Rights Reserved.