Package org.eclipse.emf.spi.cdo
Class CDOSessionProtocol.LockObjectsResult
java.lang.Object
org.eclipse.emf.spi.cdo.CDOSessionProtocol.LockObjectsResult
- Enclosing interface:
CDOSessionProtocol
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 Summary
ConstructorsConstructorDescriptionLockObjectsResult(boolean successful, boolean timedOut, boolean waitForUpdate, long requiredTimestamp, CDORevisionKey[] staleRevisions) Deprecated.LockObjectsResult(boolean successful, boolean timedOut, boolean waitForUpdate, long requiredTimestamp, CDORevisionKey[] staleRevisions, List<CDOLockDelta> lockDeltas, List<CDOLockState> lockStates, long timestamp) 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.LockObjectsResult(boolean successful, boolean timedOut, boolean waitForUpdate, long requiredTimestamp, CDORevisionKey[] staleRevisions, CDOLockState[] newLockStates, long timestamp) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the exact per-session sequence number of this lock change, or zero if the result contains no visible lock change.Deprecated.longlongbooleanbooleanboolean
-
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
-
getLockDeltas
- Since:
- 4.15
-
getLockStates
- Since:
- 4.15
-
getNewLockStates
Deprecated.As of 4.15 usegetLockStates().- Since:
- 4.1
-
getLockStates().