org.eclipse.emf.cdo.spi.server
Interface InternalLockManager
- All Superinterfaces:
- IDurableLockingManager, ILockingManager, IRWLockManager<Object,IView>, IRWOLockManager<Object,IView>
- public interface InternalLockManager
- extends IRWOLockManager<Object,IView>, ILockingManager
The type of the to-be-locked objects is either CDOIDAndBranch
or CDOID
, depending on whether
branching is supported by the repository or not.
- Since:
- 3.0
- No Implement
- This interface is not intended to be implemented by clients.
- No Extend
- This interface is not intended to be extended by clients.
Method Summary |
IDurableLockingManager.LockArea |
createLockArea(InternalView view)
|
IDurableLockingManager.LockArea |
createLockArea(InternalView view,
String lockAreaID)
|
Object |
getLockEntryObject(Object key)
|
IDurableLockingManager.LockGrade |
getLockGrade(Object key)
|
Object |
getLockKey(CDOID id,
CDOBranch branch)
|
CDOID |
getLockKeyID(Object key)
|
Map<CDOID,IDurableLockingManager.LockGrade> |
getLocks(IView view)
|
RWOLockManager.LockState<Object,IView> |
getLockState(Object key)
|
InternalRepository |
getRepository()
|
void |
lock(boolean explicit,
IRWLockManager.LockType type,
IView context,
Collection<? extends Object> objects,
long timeout)
Deprecated. |
List<RWOLockManager.LockState<Object,IView>> |
lock2(boolean explicit,
IRWLockManager.LockType type,
IView context,
Collection<? extends Object> objects,
boolean recursive,
long timeout)
|
IView |
openView(ISession session,
int viewID,
boolean readOnly,
String durableLockingID)
|
void |
reloadLocks()
|
void |
setLockState(Object key,
RWOLockManager.LockState<Object,IView> lockState)
|
void |
setRepository(InternalRepository repository)
|
void |
unlock(boolean explicit,
IRWLockManager.LockType type,
IView context,
Collection<? extends Object> objects)
Deprecated. |
void |
unlock(boolean explicit,
IView context)
Deprecated. |
List<RWOLockManager.LockState<Object,IView>> |
unlock2(boolean explicit,
IRWLockManager.LockType type,
IView context,
Collection<? extends Object> objects,
boolean recursive)
|
List<RWOLockManager.LockState<Object,IView>> |
unlock2(boolean explicit,
IView context)
|
void |
updateLockArea(IDurableLockingManager.LockArea lockArea)
|
getRepository
InternalRepository getRepository()
setRepository
void setRepository(InternalRepository repository)
getLockEntryObject
Object getLockEntryObject(Object key)
- Since:
- 4.0
getLockKey
Object getLockKey(CDOID id,
CDOBranch branch)
- Since:
- 4.0
getLockKeyID
CDOID getLockKeyID(Object key)
- Since:
- 4.0
getLocks
Map<CDOID,IDurableLockingManager.LockGrade> getLocks(IView view)
- Since:
- 4.0
lock
@Deprecated
void lock(boolean explicit,
IRWLockManager.LockType type,
IView context,
Collection<? extends Object> objects,
long timeout)
throws InterruptedException
- Deprecated.
- Throws:
InterruptedException
- Since:
- 4.0
lock2
List<RWOLockManager.LockState<Object,IView>> lock2(boolean explicit,
IRWLockManager.LockType type,
IView context,
Collection<? extends Object> objects,
boolean recursive,
long timeout)
throws InterruptedException
- Throws:
InterruptedException
- Since:
- 4.1
unlock
@Deprecated
void unlock(boolean explicit,
IRWLockManager.LockType type,
IView context,
Collection<? extends Object> objects)
- Deprecated.
- Attempts to release for a given locktype, view and objects.
- Throws:
IllegalMonitorStateException
- Unlocking objects without lock.- Since:
- 4.0
unlock2
List<RWOLockManager.LockState<Object,IView>> unlock2(boolean explicit,
IRWLockManager.LockType type,
IView context,
Collection<? extends Object> objects,
boolean recursive)
- Since:
- 4.1
unlock
@Deprecated
void unlock(boolean explicit,
IView context)
- Deprecated.
- Attempts to release all locks(read and write) for a given view.
- Since:
- 4.0
unlock2
List<RWOLockManager.LockState<Object,IView>> unlock2(boolean explicit,
IView context)
- Since:
- 4.1
createLockArea
IDurableLockingManager.LockArea createLockArea(InternalView view)
- Since:
- 4.0
createLockArea
IDurableLockingManager.LockArea createLockArea(InternalView view,
String lockAreaID)
- Since:
- 4.1
updateLockArea
void updateLockArea(IDurableLockingManager.LockArea lockArea)
- Since:
- 4.1
openView
IView openView(ISession session,
int viewID,
boolean readOnly,
String durableLockingID)
- Since:
- 4.0
getLockGrade
IDurableLockingManager.LockGrade getLockGrade(Object key)
- Since:
- 4.1
getLockState
RWOLockManager.LockState<Object,IView> getLockState(Object key)
- Since:
- 4.1
setLockState
void setLockState(Object key,
RWOLockManager.LockState<Object,IView> lockState)
- Since:
- 4.1
reloadLocks
void reloadLocks()
- Since:
- 4.1
Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.