Interface GeneralLockService

    • Method Detail

      • lock

        void lock​(String objectId)
      • unlock

        void unlock​(String objectId)
      • tryLock

        boolean tryLock​(String objectId)
      • lockContentItem

        void lockContentItem​(String siteId,
                             String path)
        Lock content item for synchronized access. Thread is blocked until lock is obtained.
        Parameters:
        siteId - site identifier
        path - content item path
      • tryLockContentItem

        boolean tryLockContentItem​(String siteId,
                                   String path)
        Try to lock item for synchronized access. If lock obtained returns true, otherwise false. Does not block thread if not available lock.
        Parameters:
        siteId -
        path -
        Returns:
      • unlockContentItem

        void unlockContentItem​(String siteId,
                               String path)
        Release lock on content item.
        Parameters:
        siteId - site identifier
        path - path of the content item