org.terracotta.modules.ehcache.transaction
Class ReadCommittedClusteredSoftLockFactory

java.lang.Object
  extended by org.terracotta.modules.ehcache.transaction.ReadCommittedClusteredSoftLockFactory
All Implemented Interfaces:
SoftLockManager

public class ReadCommittedClusteredSoftLockFactory
extends Object
implements SoftLockManager

Author:
Ludovic Orban

Constructor Summary
ReadCommittedClusteredSoftLockFactory(ToolkitInstanceFactory toolkitInstanceFactory, String cacheManagerName, String cacheName)
           
 
Method Summary
 void clearSoftLock(SoftLock softLock)
           
 Set<SoftLock> collectAllSoftLocksForTransactionID(TransactionID transactionID)
          
 SoftLockID createSoftLockID(TransactionID transactionID, Object key, Element newElement, Element oldElement)
           
 SoftLock findSoftLockById(SoftLockID softLockId)
           
 Set<Object> getKeysInvisibleInContext(LocalTransactionContext currentTransactionContext, Store underlyingStore)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadCommittedClusteredSoftLockFactory

public ReadCommittedClusteredSoftLockFactory(ToolkitInstanceFactory toolkitInstanceFactory,
                                             String cacheManagerName,
                                             String cacheName)
Method Detail

createSoftLockID

public SoftLockID createSoftLockID(TransactionID transactionID,
                                   Object key,
                                   Element newElement,
                                   Element oldElement)
Specified by:
createSoftLockID in interface SoftLockManager

findSoftLockById

public SoftLock findSoftLockById(SoftLockID softLockId)
Specified by:
findSoftLockById in interface SoftLockManager

getKeysInvisibleInContext

public Set<Object> getKeysInvisibleInContext(LocalTransactionContext currentTransactionContext,
                                             Store underlyingStore)
Specified by:
getKeysInvisibleInContext in interface SoftLockManager

collectAllSoftLocksForTransactionID

public Set<SoftLock> collectAllSoftLocksForTransactionID(TransactionID transactionID)

Specified by:
collectAllSoftLocksForTransactionID in interface SoftLockManager

clearSoftLock

public void clearSoftLock(SoftLock softLock)
Specified by:
clearSoftLock in interface SoftLockManager


Copyright © 2003-2013 Terracotta, Inc.. All Rights Reserved.