public interface CDOLockState
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.
Modifier and Type | Method and Description |
---|---|
Object |
getLockedObject()
Gets a unique identifier for the object that is locked; typically a
CDOID or a CDOIDAndBranch ,
depending on whether branching support is enabled or not |
Set<CDOLockOwner> |
getReadLockOwners() |
CDOLockOwner |
getWriteLockOwner() |
CDOLockOwner |
getWriteOptionOwner() |
boolean |
isLocked(IRWLockManager.LockType lockType,
CDOLockOwner lockOwner,
boolean others)
If the 'others' argument is
false , this method returns true if this lock is currently
held by the requesting CDOView, false otherwise. |
Object getLockedObject()
CDOID
or a CDOIDAndBranch
,
depending on whether branching support is enabled or notboolean isLocked(IRWLockManager.LockType lockType, CDOLockOwner lockOwner, boolean others)
false
, this method returns true
if this lock is currently
held by the requesting CDOView, false
otherwise.
If the 'others' argument is true
, this method returns true
if this lock is currently held
by another view (i.e. any view different from the requesting one), false
otherwise.
Set<CDOLockOwner> getReadLockOwners()
CDOLockOwner getWriteLockOwner()
CDOLockOwner getWriteOptionOwner()
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.