| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final SoftLockFactory |
| Access | Constructor and Description |
|---|---|
| public | AbstractSoftLockManager(String
name of the cache cacheName, SoftLockFactory factory of managed locks lockFactory)Create an abstract soft lock manager for the given cache name and soft lock factory. |
| Modifier and Type | Method and Description |
|---|---|
| public void | clearSoftLock(SoftLock
the lock to clear softLock)Implements net. |
| public Set | collectAllSoftLocksForTransactionID(TransactionID
the transaction ID transactionID)Implements net. |
| public SoftLockID | createSoftLockID(TransactionID
the transaction ID under which the soft lock will operate transactionID, Object the key of the Element this soft lock is protecting key, Element the new Element newElement, Element the actual Element oldElement)Implements net. |
| public SoftLock | findSoftLockById(SoftLockID
the soft lock's ID softLockId)Implements net. |
| protected abstract ConcurrentMap | |
| public Set | getKeysInvisibleInContext(LocalTransactionContext
the transaction context currentTransactionContext, Store underlyingStore)Implements net. |
| protected abstract ConcurrentMap | Returns: the map of all new key locksReturn the map of all locks that are for new keys. |
| private Set |
| cacheName | back to summary |
|---|---|
| private final String cacheName | |
| lockFactory | back to summary |
|---|---|
| private final SoftLockFactory lockFactory | |
| AbstractSoftLockManager | back to summary |
|---|---|
| public AbstractSoftLockManager(String cacheName, SoftLockFactory lockFactory) Create an abstract soft lock manager for the given cache name and soft lock factory.
| |
| clearSoftLock | back to summary |
|---|---|
| public void clearSoftLock(SoftLock softLock) Implements net. Doc from net. Clear a soft lock
| |
| collectAllSoftLocksForTransactionID | back to summary |
|---|---|
| public Set Implements net. Doc from net. Get a the soft locks of the specified transaction ID
| |
| createSoftLockID | back to summary |
|---|---|
| public SoftLockID createSoftLockID(TransactionID transactionID, Object key, Element newElement, Element oldElement) Implements net. Doc from net. Create a new soft lock ID and associated soft lock if necessary.
| |
| findSoftLockById | back to summary |
|---|---|
| public SoftLock findSoftLockById(SoftLockID softLockId) Implements net. Doc from net. Find a previously created and still existing soft lock
| |
| getAllLocks | back to summary |
|---|---|
| protected abstract ConcurrentMap Return the map of all soft locks.
| |
| getKeysInvisibleInContext | back to summary |
|---|---|
| public Set Implements net. Doc from net. Get a Set of keys protected by soft locks which must not be visible to a transaction context according to the isolation level.
| |
| getNewKeyLocks | back to summary |
|---|---|
| protected abstract ConcurrentMap Return the map of all locks that are for new keys.
| |
| getNewKeys | back to summary |
|---|---|
| private Set | |