Package org.eclipse.emf.spi.cdo
Class CDOSessionProtocol.LockStateQueryResult
java.lang.Object
org.eclipse.emf.spi.cdo.CDOSessionProtocol.LockStateQueryResult
- Enclosing interface:
CDOSessionProtocol
A partial lock-state query paired with the session lock-change sequence baseline represented by
the queried states. Unlike a lock-state snapshot, this result does not describe the complete
session cache.
- Since:
- 4.31
- Author:
- Eike Stepper
-
Constructor Summary
ConstructorsConstructorDescriptionLockStateQueryResult(long lockModCount, List<CDOLockState> lockStates) Creates a result for a selective lock-state query. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the session-specific lock-change sequence baseline represented by the queried lock states.Returns the existing lock states among the query targets.
-
Constructor Details
-
LockStateQueryResult
Creates a result for a selective lock-state query.- Parameters:
lockModCount- the session-specific sequence baseline represented bylockStateslockStates- the existing lock states found for the query targets
-
-
Method Details
-
getLockModCount
public long getLockModCount()Returns the session-specific lock-change sequence baseline represented by the queried lock states. This value is not a global lock-manager version.- Returns:
- the session lock-change sequence baseline
-
getLockStates
Returns the existing lock states among the query targets. Targets with no lock state are omitted, and the returned list is immutable.- Returns:
- the lock states returned by the selective query
-