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