Interface CDOLockState

  • All Superinterfaces:
    CDOBranchProvider, CDOIDAndBranch, CDOIdentifiable
    All Known Subinterfaces:
    All Known Implementing Classes:

    public interface CDOLockState
    extends CDOIDAndBranch
    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.

    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.
    • Method Detail

      • getLockedObject

        java.lang.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
        the identifier
      • isLocked

        boolean isLocked​(org.eclipse.net4j.util.concurrent.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.

        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.

      • getReadLockOwners

        java.util.Set<CDOLockOwner> getReadLockOwners()