org.eclipse.emf.cdo.common.lock
Interface IDurableLockingManager

All Known Subinterfaces:
InternalLockManager, IStoreAccessor.DurableLocking

public interface IDurableLockingManager

Manages all aspects of durable CDO views like persisting informations like branch point and acquired locks.

Since:
4.0
Author:
Eike Stepper
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
static interface IDurableLockingManager.LockArea
          Encapsulates the persistable information about a single durable CDO view like branch point and acquired locks.
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.
 
Method Summary
 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)
           
 

Method Detail

createLockArea

IDurableLockingManager.LockArea createLockArea(String userID,
                                               CDOBranchPoint branchPoint,
                                               boolean readOnly,
                                               Map<CDOID,IDurableLockingManager.LockGrade> locks)

getLockArea

IDurableLockingManager.LockArea getLockArea(String durableLockingID)
                                            throws IDurableLockingManager.LockAreaNotFoundException
Returns the lock area specified by the given durableLockingID, never null.

Throws:
IDurableLockingManager.LockAreaNotFoundException - if the given durableLockingID is unknown.

getLockAreas

void getLockAreas(String userIDPrefix,
                  IDurableLockingManager.LockArea.Handler handler)

deleteLockArea

void deleteLockArea(String durableLockingID)


Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.