org.terracotta.collections
Class OneToOneLockStrategy

java.lang.Object
  extended by org.terracotta.collections.BasicLockStrategy<String>
      extended by org.terracotta.collections.OneToOneLockStrategy
All Implemented Interfaces:
LockStrategy<String>

public class OneToOneLockStrategy
extends BasicLockStrategy<String>


Constructor Summary
OneToOneLockStrategy()
           
 
Method Summary
 String generateLockIdForKey(String instanceQualifier, String key)
          Generate the terracotta lock identifier used when performing operations for the given key.
 
Methods inherited from class org.terracotta.collections.BasicLockStrategy
beginLock, commitLock, pinLock, tryBeginLock, unpinLock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OneToOneLockStrategy

public OneToOneLockStrategy()
Method Detail

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.