Package org.eclipse.emf.cdo.common.lock
Interface CDOLockChangeInfo
-
- All Superinterfaces:
CDOBranchPoint
,CDOBranchProvider
,CDOTimeProvider
- All Known Subinterfaces:
CDOSessionLocksChangedEvent
,CDOViewLocksChangedEvent
public interface CDOLockChangeInfo extends CDOBranchPoint
Represents a change in the lock state of a set of objects. Instances are meant to be sent from the server to the client for the purpose of notifying the latter.- Since:
- 4.1
- Author:
- Caspar De Groot
- No Implement
- This interface is not intended to be implemented by clients.
- No Extend
- This interface is not intended to be extended by clients.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
CDOLockChangeInfo.Operation
Enumerates the possible locking operations.
-
Field Summary
-
Fields inherited from interface org.eclipse.emf.cdo.common.branch.CDOBranchPoint
INVALID_DATE, UNSPECIFIED_DATE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description CDOBranch
getBranch()
Returns the branch of this branch point, ornull
if this branch point is thebase
of themain branch
.CDOLockOwner
getLockOwner()
CDOLockState[]
getLockStates()
Deprecated.As of 4.15 use the fastergetNewLockStates()
method.org.eclipse.net4j.util.concurrent.IRWLockManager.LockType
getLockType()
java.util.List<CDOLockState>
getNewLockStates()
CDOLockChangeInfo.Operation
getOperation()
long
getTimeStamp()
Returns the time stamp of this branch point, or the fixed special time stampunspecified
if this branch point marks thehead
of a branch.boolean
isInvalidateAll()
-
-
-
Method Detail
-
isInvalidateAll
boolean isInvalidateAll()
- Returns:
true
if this instance signals that alllock states
must be invalidated,false
otherwise
-
getBranch
CDOBranch getBranch()
Description copied from interface:CDOBranchPoint
Returns the branch of this branch point, ornull
if this branch point is thebase
of themain branch
.- Specified by:
getBranch
in interfaceCDOBranchPoint
- Specified by:
getBranch
in interfaceCDOBranchProvider
- Returns:
- The branch at which the lock changes took place, same as
getView().getBranch()
.
-
getTimeStamp
long getTimeStamp()
Description copied from interface:CDOBranchPoint
Returns the time stamp of this branch point, or the fixed special time stampunspecified
if this branch point marks thehead
of a branch.- Specified by:
getTimeStamp
in interfaceCDOBranchPoint
- Specified by:
getTimeStamp
in interfaceCDOTimeProvider
- Returns:
- The repository time at which the lock changes took place. This is only an informal indication; no formal relation (e.g. an ordering) with commit time stamps is guaranteed.
-
getOperation
CDOLockChangeInfo.Operation getOperation()
- Returns:
- the type of lock operation that caused the lock changes
-
getLockType
org.eclipse.net4j.util.concurrent.IRWLockManager.LockType getLockType()
- Returns:
- the type of locks that were affected by the lock operation
-
getLockOwner
CDOLockOwner getLockOwner()
- Returns:
- The view, represented as a
CDOLockOwner
, that authored the lock changes.
-
getLockStates
@Deprecated CDOLockState[] getLockStates()
Deprecated.As of 4.15 use the fastergetNewLockStates()
method.- Returns:
- The new lock states of the objects that were affected by the change
-
getNewLockStates
java.util.List<CDOLockState> getNewLockStates()
- Since:
- 4.15
-
-