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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SoftLockManagerImpl
public SoftLockManagerImpl(String cacheName,
SoftLockFactory lockFactory)
- Create a new ReadCommittedSoftLockFactoryImpl instance for a cache
- Parameters:
cacheName
- the name of the cache
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
Copyright 2001-2016, Terracotta, Inc.