|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.transaction.ReadCommittedSoftLockFactoryImpl
public class ReadCommittedSoftLockFactoryImpl
A SoftLockFactory implementation which creates soft locks with Read-Committed isolation level
| Constructor Summary | |
|---|---|
ReadCommittedSoftLockFactoryImpl(java.lang.String cacheName)
Create a new ReadCommittedSoftLockFactoryImpl instance for a cache |
|
| Method Summary | |
|---|---|
java.util.Set<SoftLock> |
collectAllSoftLocksForTransactionID(TransactionID transactionID)
Get a the soft locks of the specified transaction ID |
java.util.Set<TransactionID> |
collectExpiredTransactionIDs()
Get a Set of TransactionIDs for which the soft locks have expired |
SoftLock |
createSoftLock(TransactionID transactionID,
java.lang.Object key,
Element newElement,
Element oldElement)
Create a new, unlocked soft lock |
java.util.Set<java.lang.Object> |
getKeysInvisibleInContext(LocalTransactionContext currentTransactionContext)
Get a Set of keys protected by soft locks which must not be visible to a transaction context according to the isolation level. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReadCommittedSoftLockFactoryImpl(java.lang.String cacheName)
cacheName - the name of the cache| Method Detail |
|---|
public SoftLock createSoftLock(TransactionID transactionID,
java.lang.Object key,
Element newElement,
Element oldElement)
createSoftLock in interface SoftLockFactorytransactionID - 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
public java.util.Set<java.lang.Object> getKeysInvisibleInContext(LocalTransactionContext currentTransactionContext)
getKeysInvisibleInContext in interface SoftLockFactorycurrentTransactionContext - the transaction context
public java.util.Set<TransactionID> collectExpiredTransactionIDs()
collectExpiredTransactionIDs in interface SoftLockFactorypublic java.util.Set<SoftLock> collectAllSoftLocksForTransactionID(TransactionID transactionID)
collectAllSoftLocksForTransactionID in interface SoftLockFactorytransactionID - the transaction ID
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||