Interface LockService
- All Known Implementing Classes:
RedisLockService,TimeSlotLockService
public interface LockService
The LockService interface provides methods for acquiring and releasing locks
on various resources. Implementations of this interface can use different
backend systems (such as Redis or a database) to manage these locks.
- Since:
- 18.0
-
Method Summary
Modifier and TypeMethodDescriptionbooleanacquireLock(String uuid, String key, int timeout) voidextendLock(String uuid, int timeout) booleanvoidvoidreleaseLock(String uuid)
-
Method Details
-
acquireLock
- Throws:
DAValidateExceptionDAException
-
releaseLock
- Throws:
DAExceptionDAValidateException
-
releaseAllLocks
- Throws:
DAExceptionDAValidateException
-
extendLock
- Throws:
DAValidateExceptionDAException
-
isLocked
boolean isLocked(String baseLockKey, boolean checkTotalCOScope) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-