Package org.eclipse.emf.cdo.common.lock
Interface IDurableLockingManager
- All Known Subinterfaces:
ILissomeStoreAccessor
,ILockingManager
,InternalLockManager
,IStoreAccessor.DurableLocking
,IStoreAccessor.DurableLocking2
public interface IDurableLockingManager
Manages all persistent aspects of durable CDO views such as
branch point
and acquired locks.- Since:
- 4.0
- Author:
- Eike Stepper
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Encapsulates the persistable information about a single durable CDO view likebranch point
and acquired locks.static class
Exception occurs when attempting to create a durableIDurableLockingManager.LockArea
that already exists.static class
Thrown if alock area
is specified that does not exist in a CDOrepository
.static enum
Enumerates the possible combinations of read and write locks on a single CDO object. -
Method Summary
Modifier and TypeMethodDescriptioncreateLockArea
(String userID, CDOBranchPoint branchPoint, boolean readOnly, Map<CDOID, IDurableLockingManager.LockGrade> locks) void
deleteLockArea
(String durableLockingID) getLockArea
(String durableLockingID) Returns thelock area
specified by the given durableLockingID, nevernull
.void
getLockAreas
(String userIDPrefix, IDurableLockingManager.LockArea.Handler handler)
-
Method Details
-
createLockArea
IDurableLockingManager.LockArea createLockArea(String userID, CDOBranchPoint branchPoint, boolean readOnly, Map<CDOID, IDurableLockingManager.LockGrade> locks) throws IDurableLockingManager.LockAreaAlreadyExistsException -
getLockArea
IDurableLockingManager.LockArea getLockArea(String durableLockingID) throws IDurableLockingManager.LockAreaNotFoundException Returns thelock area
specified by the given durableLockingID, nevernull
.- Throws:
IDurableLockingManager.LockAreaNotFoundException
- if the given durableLockingID is unknown.
-
getLockAreas
-
deleteLockArea
-