Package net.sf.ehcache.transaction
Class SoftLockManagerImpl
- java.lang.Object
-
- net.sf.ehcache.transaction.AbstractSoftLockManager
-
- 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
Constructors Constructor Description SoftLockManagerImpl(java.lang.String cacheName, SoftLockFactory lockFactory)Create a new ReadCommittedSoftLockFactoryImpl instance for a cache
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.concurrent.ConcurrentMap<SoftLockID,SoftLock>getAllLocks()Return the map of all soft locks.protected java.util.concurrent.ConcurrentMap<SoftLockID,java.lang.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
-
-
-
-
Constructor Detail
-
SoftLockManagerImpl
public SoftLockManagerImpl(java.lang.String cacheName, SoftLockFactory lockFactory)Create a new ReadCommittedSoftLockFactoryImpl instance for a cache- Parameters:
cacheName- the name of the cache
-
-
Method Detail
-
getAllLocks
protected java.util.concurrent.ConcurrentMap<SoftLockID,SoftLock> getAllLocks()
Description copied from class:AbstractSoftLockManagerReturn the map of all soft locks.- Specified by:
getAllLocksin classAbstractSoftLockManager- Returns:
- the map of all locks
-
getNewKeyLocks
protected java.util.concurrent.ConcurrentMap<SoftLockID,java.lang.Boolean> getNewKeyLocks()
Description copied from class:AbstractSoftLockManagerReturn the map of all locks that are for new keys.- Specified by:
getNewKeyLocksin classAbstractSoftLockManager- Returns:
- the map of all new key locks
-
-