ehcache

net.sf.ehcache.transaction
Class SoftLockManagerImpl

java.lang.Object
  extended by net.sf.ehcache.transaction.AbstractSoftLockManager
      extended by net.sf.ehcache.transaction.SoftLockManagerImpl
All Implemented Interfaces:
SoftLockManager

public class SoftLockManagerImpl
extends AbstractSoftLockManager

A SoftLockFactory implementation which creates soft locks with Read-Committed isolation level

Author:
Ludovic Orban

Constructor Summary
SoftLockManagerImpl(String cacheName, SoftLockFactory lockFactory)
          Create a new ReadCommittedSoftLockFactoryImpl instance for a cache
 
Method Summary
protected  ConcurrentMap<SoftLockID,SoftLock> getAllLocks()
          Return the map of all soft locks.
protected  ConcurrentMap<SoftLockID,Boolean> getNewKeyLocks()
          Return the map of all locks that are for new keys.
 
Methods inherited from class net.sf.ehcache.transaction.AbstractSoftLockManager
clearSoftLock, collectAllSoftLocksForTransactionID, createSoftLockID, findSoftLockById, getKeysInvisibleInContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoftLockManagerImpl

public SoftLockManagerImpl(String cacheName,
                           SoftLockFactory lockFactory)
Create a new ReadCommittedSoftLockFactoryImpl instance for a cache

Parameters:
cacheName - the name of the cache
Method Detail

getAllLocks

protected ConcurrentMap<SoftLockID,SoftLock> getAllLocks()
Description copied from class: AbstractSoftLockManager
Return the map of all soft locks.

Specified by:
getAllLocks in class AbstractSoftLockManager
Returns:
the map of all locks

getNewKeyLocks

protected ConcurrentMap<SoftLockID,Boolean> getNewKeyLocks()
Description copied from class: AbstractSoftLockManager
Return the map of all locks that are for new keys.

Specified by:
getNewKeyLocks in class AbstractSoftLockManager
Returns:
the map of all new key locks

ehcache

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