Top Description Fields Constructors Methods
net.sf.ehcache.transaction

public Class SoftLockManagerImpl

extends AbstractSoftLockManager
Class Inheritance
Imports
java.util.concurrent.ConcurrentHashMap, .ConcurrentMap

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

Field Summary

Modifier and TypeField and Description
private final ConcurrentMap<SoftLockID, SoftLock>
private final ConcurrentMap<SoftLockID, Boolean>

Constructor Summary

AccessConstructor and Description
public
SoftLockManagerImpl(String
the name of the cache
cacheName
,
SoftLockFactory lockFactory)

Create a new ReadCommittedSoftLockFactoryImpl instance for a cache

Method Summary

Modifier and TypeMethod and Description
protected ConcurrentMap<SoftLockID, SoftLock>
getAllLocks()

Implements abstract net.sf.ehcache.transaction.AbstractSoftLockManager.getAllLocks.

Return the map of all soft locks.
protected ConcurrentMap<SoftLockID, Boolean>
getNewKeyLocks()

Implements abstract net.sf.ehcache.transaction.AbstractSoftLockManager.getNewKeyLocks.

Return the map of all locks that are for new keys.
Inherited from net.sf.ehcache.transaction.AbstractSoftLockManager:
clearSoftLockcollectAllSoftLocksForTransactionIDcreateSoftLockIDfindSoftLockByIdgetKeysInvisibleInContext

Field Detail

allLocksback to summary
private final ConcurrentMap<SoftLockID, SoftLock> allLocks
newKeyLocksback to summary
private final ConcurrentMap<SoftLockID, Boolean> newKeyLocks

Constructor Detail

SoftLockManagerImplback to summary
public SoftLockManagerImpl(String cacheName, SoftLockFactory lockFactory)

Create a new ReadCommittedSoftLockFactoryImpl instance for a cache

Parameters
cacheName:String

the name of the cache

Method Detail

getAllLocksback to summary
protected ConcurrentMap<SoftLockID, SoftLock> getAllLocks()

Implements abstract net.sf.ehcache.transaction.AbstractSoftLockManager.getAllLocks.

Doc from net.sf.ehcache.transaction.AbstractSoftLockManager.getAllLocks.

Return the map of all soft locks.

Returns:ConcurrentMap<SoftLockID, SoftLock>

the map of all locks

Annotations
@Override
getNewKeyLocksback to summary
protected ConcurrentMap<SoftLockID, Boolean> getNewKeyLocks()

Implements abstract net.sf.ehcache.transaction.AbstractSoftLockManager.getNewKeyLocks.

Doc from net.sf.ehcache.transaction.AbstractSoftLockManager.getNewKeyLocks.

Return the map of all locks that are for new keys.

Returns:ConcurrentMap<SoftLockID, Boolean>

the map of all new key locks

Annotations
@Override