Package org.eclipse.emf.cdo.common.lock
Interface CDOLockChangeInfo
- All Superinterfaces:
CDOBranchPoint,CDOBranchProvider,CDOTimeProvider
- All Known Subinterfaces:
CDOSessionLocksChangedEvent,CDOViewLocksChangedEvent
- All Known Implementing Classes:
AbstractCDOLockChangeInfo
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 ClassesModifier and TypeInterfaceDescriptionstatic enumEnumerates the possible locking operations. -
Field Summary
Fields inherited from interface org.eclipse.emf.cdo.common.branch.CDOBranchPoint
INVALID_DATE, UNSPECIFIED_DATE -
Method Summary
Modifier and TypeMethodDescriptionReturns the branch of this branch point, ornullif this branch point is thebaseof themain branch.org.eclipse.net4j.util.concurrent.IRWLockManager.LockTypeDeprecated.Set<org.eclipse.net4j.util.concurrent.IRWLockManager.LockType>Deprecated.As of 4.15 usegetOperations().longReturns the time stamp of this branch point, or the fixed special time stampunspecifiedif this branch point marks theheadof a branch.boolean
-
Method Details
-
getBranch
CDOBranch getBranch()Description copied from interface:CDOBranchPointReturns the branch of this branch point, ornullif this branch point is thebaseof themain branch.- Specified by:
getBranchin interfaceCDOBranchPoint- Specified by:
getBranchin interfaceCDOBranchProvider- Returns:
- The branch at which the lock changes took place, same as
getView().getBranch().
-
getTimeStamp
long getTimeStamp()Description copied from interface:CDOBranchPointReturns the time stamp of this branch point, or the fixed special time stampunspecifiedif this branch point marks theheadof a branch.- Specified by:
getTimeStampin interfaceCDOBranchPoint- Specified by:
getTimeStampin 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.
-
getLockOwner
CDOLockOwner getLockOwner()- Returns:
- The view, represented as a
CDOLockOwner, that authored the lock changes.
-
getLockDeltas
CDOLockDelta[] getLockDeltas()- Since:
- 4.15
-
getLockStates
CDOLockState[] getLockStates()- Returns:
- The new lock states of the objects that were affected by the change
-
getOperations
Set<CDOLockChangeInfo.Operation> getOperations()- Since:
- 4.15
-
getLockTypes
Set<org.eclipse.net4j.util.concurrent.IRWLockManager.LockType> getLockTypes()- Since:
- 4.15
-
getAffectedIDs
- Since:
- 4.15
-
isInvalidateAll
boolean isInvalidateAll()- Returns:
trueif this instance signals that alllock statesmust be invalidated,falseotherwise
-
getOperation
Deprecated.As of 4.15 usegetOperations().- Returns:
- the type of lock operation that caused the lock changes
-
getLockType
Deprecated.As of 4.15 usegetLockTypes().- Returns:
- the type of locks that were affected by the lock operation
-
getLockTypes().