| 
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SoftLockManager
A factory for SoftLocks
| Method Summary | |
|---|---|
 void | 
clearSoftLock(SoftLock softLock)
Clear a soft lock  | 
 Set<SoftLock> | 
collectAllSoftLocksForTransactionID(TransactionID transactionID)
Get a the soft locks of the specified transaction ID  | 
 SoftLockID | 
createSoftLockID(TransactionID transactionID,
                 Object key,
                 Element newElement,
                 Element oldElement)
Create a new soft lock ID and associated soft lock if necessary.  | 
 SoftLock | 
findSoftLockById(SoftLockID softLockId)
Find a previously created and still existing soft lock  | 
 Set<Object> | 
getKeysInvisibleInContext(LocalTransactionContext transactionContext,
                          Store underlyingStore)
Get a Set of keys protected by soft locks which must not be visible to a transaction context according to the isolation level.  | 
| Method Detail | 
|---|
SoftLockID createSoftLockID(TransactionID transactionID,
                            Object key,
                            Element newElement,
                            Element oldElement)
transactionID - the transaction ID under which the soft lock will operatekey - the key of the Element this soft lock is protectingnewElement - the new ElementoldElement - the actual Element
void clearSoftLock(SoftLock softLock)
softLock - the lock to clearSoftLock findSoftLockById(SoftLockID softLockId)
softLockId - the soft lock's ID
Set<Object> getKeysInvisibleInContext(LocalTransactionContext transactionContext,
                                      Store underlyingStore)
transactionContext - the transaction context
Set<SoftLock> collectAllSoftLocksForTransactionID(TransactionID transactionID)
transactionID - the transaction ID
  | 
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||