public interface IDurableLockingManager
branch point
and acquired locks.Modifier and Type | Interface and Description |
---|---|
static interface |
IDurableLockingManager.LockArea
Encapsulates the persistable information about a single durable CDO view like
branch point
and acquired locks. |
static class |
IDurableLockingManager.LockAreaAlreadyExistsException
Exception occurs when attempting to create a durable
IDurableLockingManager.LockArea that already exists. |
static class |
IDurableLockingManager.LockAreaNotFoundException
Thrown if a
lock area is spcified that does not exist in a CDO repository . |
static class |
IDurableLockingManager.LockGrade
Enumerates the possible combinations of read and write locks on a single CDO object.
|
Modifier and Type | Method and Description |
---|---|
IDurableLockingManager.LockArea |
createLockArea(String userID,
CDOBranchPoint branchPoint,
boolean readOnly,
Map<CDOID,IDurableLockingManager.LockGrade> locks) |
void |
deleteLockArea(String durableLockingID) |
IDurableLockingManager.LockArea |
getLockArea(String durableLockingID)
Returns the
lock area specified by the given durableLockingID, never null . |
void |
getLockAreas(String userIDPrefix,
IDurableLockingManager.LockArea.Handler handler) |
IDurableLockingManager.LockArea createLockArea(String userID, CDOBranchPoint branchPoint, boolean readOnly, Map<CDOID,IDurableLockingManager.LockGrade> locks) throws IDurableLockingManager.LockAreaAlreadyExistsException
IDurableLockingManager.LockArea getLockArea(String durableLockingID) throws IDurableLockingManager.LockAreaNotFoundException
lock area
specified by the given durableLockingID, never null
.IDurableLockingManager.LockAreaNotFoundException
- if the given durableLockingID is unknown.void getLockAreas(String userIDPrefix, IDurableLockingManager.LockArea.Handler handler)
void deleteLockArea(String durableLockingID)
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.