Interface GeneralLockService
- All Known Implementing Classes:
GeneralLockServiceImpl
public interface GeneralLockService
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidlockContentItem(String siteId, String path) Lock content item for synchronized access.booleanbooleantryLockContentItem(String siteId, String path) Try to lock item for synchronized access.voidvoidunlockContentItem(String siteId, String path) Release lock on content item.
-
Method Details
-
lock
-
unlock
-
tryLock
-
lockContentItem
Lock content item for synchronized access. Thread is blocked until lock is obtained.- Parameters:
siteId- site identifierpath- content item path
-
tryLockContentItem
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
Release lock on content item.- Parameters:
siteId- site identifierpath- path of the content item
-