Package | Description |
---|---|
net.sf.ehcache.transaction |
This package contains classes for controlling cache operations for transactional use.
|
net.sf.ehcache.transaction.local |
This package contains the local transactions subsystem.
|
Modifier and Type | Class and Description |
---|---|
class |
ReadCommittedSoftLockImpl
A SoftLock implementation with Read-Committed isolation level
|
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.ConcurrentMap<SoftLockID,SoftLock> |
SoftLockManagerImpl.allLocks |
Modifier and Type | Method and Description |
---|---|
SoftLock |
SoftLockManager.findSoftLockById(SoftLockID softLockId)
Find a previously created and still existing soft lock
|
SoftLock |
AbstractSoftLockManager.findSoftLockById(SoftLockID softLockId)
Find a previously created and still existing soft lock
|
SoftLock |
SoftLockFactory.newSoftLock(SoftLockManager manager,
java.lang.Object key)
Construct a new softlock to be managed by the given manager for a specific key.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<SoftLock> |
SoftLockManager.collectAllSoftLocksForTransactionID(TransactionID transactionID)
Get a the soft locks of the specified transaction ID
|
java.util.Set<SoftLock> |
AbstractSoftLockManager.collectAllSoftLocksForTransactionID(TransactionID transactionID)
Get a the soft locks of the specified transaction ID
|
protected java.util.concurrent.ConcurrentMap<SoftLockID,SoftLock> |
SoftLockManagerImpl.getAllLocks() |
protected abstract java.util.concurrent.ConcurrentMap<SoftLockID,SoftLock> |
AbstractSoftLockManager.getAllLocks()
Return the map of all soft locks.
|
Modifier and Type | Method and Description |
---|---|
void |
SoftLockManager.clearSoftLock(SoftLock softLock)
Clear a soft lock
|
void |
AbstractSoftLockManager.clearSoftLock(SoftLock softLock)
Clear a soft lock
|
static void |
SoftLockHelper.commit(SoftLock softLock,
Store underlyingStore,
ElementValueComparator comparator)
Commit a soft lock.
|
static void |
SoftLockHelper.rollback(SoftLock softLock,
Store underlyingStore,
ElementValueComparator comparator)
Rollback a soft lock.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,java.util.List<SoftLock>> |
LocalTransactionContext.softLockMap |
Modifier and Type | Method and Description |
---|---|
java.util.List<SoftLock> |
LocalTransactionContext.getSoftLocksForCache(java.lang.String cacheName)
Get all soft locks registered in this context for a specific cache
|
Modifier and Type | Method and Description |
---|---|
void |
LocalTransactionContext.registerSoftLock(java.lang.String cacheName,
LocalTransactionStore store,
SoftLock softLock)
Register a soft lock in the context
|
void |
LocalTransactionContext.updateSoftLock(java.lang.String cacheName,
SoftLock softLock)
Update a soft lock already registered in the context
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
LocalTransactionStore.commit(java.util.List<SoftLock> softLocks)
Commit work of the specified soft locks
|
(package private) void |
LocalTransactionStore.rollback(java.util.List<SoftLock> softLocks)
Rollback work of the specified soft locks
|