Class CDOSessionProtocol.LockObjectsResult

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

public static final class CDOSessionProtocol.LockObjectsResult extends Object
Describes the outcome of a repository object-lock request, including whether the requested locks were obtained and the lock-state information the client needs to update its view.
Since:
4.0
Author:
Eike Stepper
  • Constructor Details

    • LockObjectsResult

      public LockObjectsResult(boolean successful, boolean timedOut, boolean waitForUpdate, long requiredTimestamp, CDORevisionKey[] staleRevisions, List<CDOLockDelta> lockDeltas, List<CDOLockState> lockStates, long timestamp)
      Since:
      4.15
    • LockObjectsResult

      public LockObjectsResult(boolean successful, boolean timedOut, boolean waitForUpdate, long requiredTimestamp, CDORevisionKey[] staleRevisions, List<CDOLockDelta> lockDeltas, List<CDOLockState> lockStates, long timestamp, long lockModCount)
      Creates a lock result with the sequence number of its authoritative lock change.
      Since:
      4.31
    • LockObjectsResult

      @Deprecated public LockObjectsResult(boolean successful, boolean timedOut, boolean waitForUpdate, long requiredTimestamp, CDORevisionKey[] staleRevisions)
      Deprecated.
    • LockObjectsResult

      @Deprecated public LockObjectsResult(boolean successful, boolean timedOut, boolean waitForUpdate, long requiredTimestamp, CDORevisionKey[] staleRevisions, CDOLockState[] newLockStates, long timestamp)
      Deprecated.
      Since:
      4.1
  • Method Details

    • isSuccessful

      public boolean isSuccessful()
    • isTimedOut

      public boolean isTimedOut()
    • isWaitForUpdate

      public boolean isWaitForUpdate()
    • getRequiredTimestamp

      public long getRequiredTimestamp()
    • getTimestamp

      public long getTimestamp()
      Since:
      4.1
    • getLockModCount

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

      public CDORevisionKey[] getStaleRevisions()
    • 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().
      Since:
      4.1