Package org.eclipse.emf.spi.cdo
Interface InternalCDOLockStateCache
- All Superinterfaces:
CDOLockStateCache,org.eclipse.net4j.util.lifecycle.IDeactivateable,org.eclipse.net4j.util.lifecycle.ILifecycle,org.eclipse.net4j.util.event.INotifier
- Since:
- 4.31
- Author:
- Eike Stepper
- No Implement
- This interface is not intended to be implemented by clients.
- No Extend
- This interface is not intended to be extended by clients.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.emf.spi.cdo.CDOLockStateCache
CDOLockStateCache.ObjectAlreadyLockedExceptionNested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
org.eclipse.net4j.util.lifecycle.ILifecycle.DeferrableActivationNested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier
org.eclipse.net4j.util.event.INotifier.INotifier2 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLockStatesStrict(CDOBranch branch, Collection<? extends CDOLockState> lockStates) Adds lock states without the historical best-effort exception handling.voidreplaceSnapshot(Collection<? extends CDOLockState> lockStates) Replaces the cached lock states with the given authoritative snapshot.Methods inherited from interface org.eclipse.emf.spi.cdo.CDOLockStateCache
addLockStates, createKey, forEachLockState, getLockState, getLockStates, getSession, remapOwner, removeLockStates, removeLockStates, removeOwner, updateLockStatesMethods inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
activate, deactivate, getLifecycleState, isActiveMethods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
-
Method Details
-
addLockStatesStrict
Adds lock states without the historical best-effort exception handling.This method is for cache-only query actions whose sequence baseline has been accepted. A failure must escape so the lock change sequencer can suspend and request an authoritative snapshot.
- Parameters:
branch- the branch whose cache entries are updatedlockStates- the complete states captured by the query
-
replaceSnapshot
Replaces the cached lock states with the given authoritative snapshot.Existing cached lock states are cleared before the supplied states are added. This operation is used to restore the cache after a sequence gap, when incremental updates can no longer be applied reliably.
- Parameters:
lockStates- the complete lock-state snapshot to install
-