Package org.eclipse.emf.cdo.common.lock
Class CDOLockUtil
java.lang.Object
org.eclipse.emf.cdo.common.lock.CDOLockUtil
Various static methods that may help with classes related to CDO locks.
- Since:
- 4.1
- Author:
- Caspar De Groot
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final CDOLockDelta[]
static final CDOLockState[]
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<CDOLockDelta>
appendLockDelta
(List<CDOLockDelta> deltas, Object target, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType type, CDOLockOwner oldOwner, CDOLockOwner newOwner) static List<CDOLockDelta>
appendLockDelta
(List<CDOLockDelta> deltas, CDOLockDelta delta) static CDOLockState
convertLockState
(org.eclipse.net4j.util.concurrent.RWOLockManager.LockState<Object, ? extends CDOCommonView> lockState) static CDOLockState
copyLockState
(CDOLockState lockState) Deprecated.As of 4.15 no longer supported.static CDOLockState
copyLockState
(CDOLockState lockState, Object lockedObject) Deprecated.As of 4.15 no longer supported.static String
static String
createDurableLockingID
(int bytes) createLockArea
(String durableLockingID) createLockArea
(String durableLockingID, String userID, CDOBranchPoint branchPoint, boolean readOnly, Map<CDOID, IDurableLockingManager.LockGrade> locks) static CDOLockChangeInfo
static CDOLockChangeInfo
createLockChangeInfo
(long timestamp, CDOCommonView view, CDOBranch viewedBranch, CDOLockChangeInfo.Operation op, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType lockType, CDOLockState[] newLockStates) Deprecated.static CDOLockChangeInfo
createLockChangeInfo
(long timestamp, CDOLockOwner lockOwner, CDOBranch branch, CDOLockChangeInfo.Operation op, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType lockType, CDOLockState[] newLockStates) Deprecated.static CDOLockChangeInfo
createLockChangeInfo
(CDOBranchPoint branchPoint, CDOLockOwner lockOwner, Collection<CDOLockDelta> lockDeltas, Collection<CDOLockState> lockStates) static CDOLockDelta
createLockDelta
(Object target) static CDOLockDelta
createLockDelta
(Object target, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType type, CDOLockOwner oldOwner, CDOLockOwner newOwner) static CDOLockOwner
createLockOwner
(int sessionID, int viewID, String durableLockingID) static CDOLockOwner
createLockOwner
(CDOCommonView view) static CDOLockState
createLockState
(Object target) static CDOLockState
createLockState
(org.eclipse.net4j.util.concurrent.RWOLockManager.LockState<Object, ? extends CDOCommonView> lockState) Deprecated.As of 4.15 useconvertLockState(LockState)
.static CDOBranch
getLockedObjectBranch
(Object lockedObject) static CDOID
getLockedObjectID
(Object lockedObject) static int
indexOf
(CDOLockOwner[] lockOwners, CDOLockOwner lockOwner) static CDOLockDelta[]
toArray
(List<CDOLockDelta> deltas)
-
Field Details
-
DURABLE_SESSION_ID
public static final int DURABLE_SESSION_ID- Since:
- 4.14
- See Also:
-
DURABLE_VIEW_ID
public static final int DURABLE_VIEW_ID- Since:
- 4.14
- See Also:
-
NO_LOCK_STATES
- Since:
- 4.15
-
NO_LOCK_DELTAS
- Since:
- 4.15
-
-
Method Details
-
getLockedObjectID
- Since:
- 4.12
-
getLockedObjectBranch
- Since:
- 4.12
-
indexOf
- Since:
- 4.15
-
convertLockState
public static CDOLockState convertLockState(org.eclipse.net4j.util.concurrent.RWOLockManager.LockState<Object, ? extends CDOCommonView> lockState) - Since:
- 4.15
-
createLockState
-
createLockOwner
-
createLockOwner
- Since:
- 4.14
-
createLockDelta
public static CDOLockDelta createLockDelta(Object target, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType type, CDOLockOwner oldOwner, CDOLockOwner newOwner) - Since:
- 4.15
-
createLockDelta
- Since:
- 4.15
-
createLockChangeInfo
public static CDOLockChangeInfo createLockChangeInfo(CDOBranchPoint branchPoint, CDOLockOwner lockOwner, Collection<CDOLockDelta> lockDeltas, Collection<CDOLockState> lockStates) - Since:
- 4.15
-
createLockChangeInfo
-
createLockArea
public static IDurableLockingManager.LockArea createLockArea(String durableLockingID, String userID, CDOBranchPoint branchPoint, boolean readOnly, Map<CDOID, IDurableLockingManager.LockGrade> locks) -
createLockArea
-
createDurableLockingID
-
createDurableLockingID
-
appendLockDelta
public static List<CDOLockDelta> appendLockDelta(List<CDOLockDelta> deltas, Object target, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType type, CDOLockOwner oldOwner, CDOLockOwner newOwner) - Since:
- 4.15
-
appendLockDelta
- Since:
- 4.15
-
toArray
- Since:
- 4.15
-
copyLockState
Deprecated.As of 4.15 no longer supported. -
copyLockState
Deprecated.As of 4.15 no longer supported.- Since:
- 4.12
-
createLockState
@Deprecated public static CDOLockState createLockState(org.eclipse.net4j.util.concurrent.RWOLockManager.LockState<Object, ? extends CDOCommonView> lockState) Deprecated.As of 4.15 useconvertLockState(LockState)
. -
createLockChangeInfo
@Deprecated public static CDOLockChangeInfo createLockChangeInfo(long timestamp, CDOLockOwner lockOwner, CDOBranch branch, CDOLockChangeInfo.Operation op, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType lockType, CDOLockState[] newLockStates) Deprecated. -
createLockChangeInfo
@Deprecated public static CDOLockChangeInfo createLockChangeInfo(long timestamp, CDOCommonView view, CDOBranch viewedBranch, CDOLockChangeInfo.Operation op, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType lockType, CDOLockState[] newLockStates) Deprecated.
-