Package org.eclipse.emf.cdo.common.lock
Schnittstelle CDOLockState
- Alle Superschnittstellen:
CDOBranchProvider,CDOIDAndBranch,CDOIdentifiable
- Alle bekannten Unterschnittstellen:
InternalCDOLockState
- Alle bekannten Implementierungsklassen:
AbstractCDOLockState
A client-side representation of all the locks on a single CDOObject.
As an individual lock is always owned by view, which in turn is owned by a session, the methods on this interface
return instances of CDOLockOwner which carry that information.
- Seit:
- 4.1
- Autor:
- Caspar De Groot
- No Implement
- This interface is not intended to be implemented by clients.
- No Extend
- This interface is not intended to be extended by clients.
-
Feldübersicht
Felder -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungGets a unique identifier for the object that is locked; typically aCDOIDor aCDOIDAndBranch, depending on whether branching support is enabled or notbooleanisLocked(org.eclipse.net4j.util.concurrent.IRWLockManager.LockType type, CDOLockOwner by, boolean others) If the 'others' argument isfalse, this method returnstrueif this lock is currently held by the requesting CDOView,falseotherwise.Von Schnittstelle geerbte Methoden org.eclipse.emf.cdo.common.revision.CDOIDAndBranch
getBranchVon Schnittstelle geerbte Methoden org.eclipse.emf.cdo.common.id.CDOIdentifiable
getID
-
Felddetails
-
DEPTH_NONE
static final int DEPTH_NONE- Seit:
- 4.4
- Siehe auch:
-
DEPTH_INFINITE
static final int DEPTH_INFINITE- Seit:
- 4.4
- Siehe auch:
-
-
Methodendetails
-
getLockedObject
Object getLockedObject()Gets a unique identifier for the object that is locked; typically aCDOIDor aCDOIDAndBranch, depending on whether branching support is enabled or not- Gibt zurück:
- the identifier
-
isLocked
boolean isLocked(org.eclipse.net4j.util.concurrent.IRWLockManager.LockType type, CDOLockOwner by, boolean others) If the 'others' argument isfalse, this method returnstrueif this lock is currently held by the requesting CDOView,falseotherwise.If the 'others' argument is
true, this method returnstrueif this lock is currently held by another view (i.e. any view different from the requesting one),falseotherwise. -
getReadLockOwners
Set<CDOLockOwner> getReadLockOwners() -
getWriteLockOwner
CDOLockOwner getWriteLockOwner() -
getWriteOptionOwner
CDOLockOwner getWriteOptionOwner()
-