Class CDOSessionProtocol.LockStateQueryResult

java.lang.Object
org.eclipse.emf.spi.cdo.CDOSessionProtocol.LockStateQueryResult
Enclosing interface:
CDOSessionProtocol

public static final class CDOSessionProtocol.LockStateQueryResult extends Object
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 Details

    • LockStateQueryResult

      public LockStateQueryResult(long lockModCount, List<CDOLockState> lockStates)
      Creates a result for a selective lock-state query.
      Parameters:
      lockModCount - the session-specific sequence baseline represented by lockStates
      lockStates - 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

      public List<CDOLockState> 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