public interface SoftLockManager
SoftLocks| Modifier and Type | Method and Description |
|---|---|
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,
boolean pinned)
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.
|
SoftLockID createSoftLockID(TransactionID transactionID, Object key, Element newElement, Element oldElement, boolean pinned)
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 Elementpinned - true if the actual Element is pinnedvoid clearSoftLock(SoftLock softLock)
softLock - the lock to clearSoftLock findSoftLockById(SoftLockID softLockId)
softLockId - the soft lock's IDSet<Object> getKeysInvisibleInContext(LocalTransactionContext transactionContext, Store underlyingStore)
transactionContext - the transaction contextSet<SoftLock> collectAllSoftLocksForTransactionID(TransactionID transactionID)
transactionID - the transaction IDCopyright © 2003-2014 Terracotta, Inc.. All Rights Reserved.