Class CDOSessionProtocol.UnlockObjectsResult

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

public static final class CDOSessionProtocol.UnlockObjectsResult extends Object
Carries the repository's response to an object-unlock request, including the lock changes and their update timestamp so the client can bring its lock state in line with the repository.
Since:
4.1
Author:
Eike Stepper
  • Constructor Details

    • UnlockObjectsResult

      public UnlockObjectsResult(long timestamp, List<CDOLockDelta> lockDeltas, List<CDOLockState> lockStates)
      Since:
      4.15
    • UnlockObjectsResult

      public UnlockObjectsResult(long timestamp, List<CDOLockDelta> lockDeltas, List<CDOLockState> lockStates, long lockModCount)
      Creates an unlock result with the sequence number of its authoritative lock change.
      Since:
      4.31
    • UnlockObjectsResult

      @Deprecated public UnlockObjectsResult(CDOLockState[] newLockStates, long timestamp)
      Deprecated.
  • Method Details

    • getTimestamp

      public long getTimestamp()
    • getLockModCount

      public long getLockModCount()
      Returns the exact per-session sequence number of this unlock change, or zero if the result contains no visible lock change.
      Since:
      4.31
    • getLockDeltas

      public List<CDOLockDelta> getLockDeltas()
      Since:
      4.15
    • getLockStates

      public List<CDOLockState> getLockStates()
      Since:
      4.15
    • getNewLockStates

      @Deprecated public CDOLockState[] getNewLockStates()
      Deprecated.
      As of 4.15 use getLockStates().