Module net.javacrumbs.shedlock.core
Package net.javacrumbs.shedlock.support
Interface StorageAccessor
- All Known Implementing Classes:
AbstractStorageAccessor
public interface StorageAccessor
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanextend(LockConfiguration lockConfiguration) booleaninsertRecord(LockConfiguration lockConfiguration) Inserts a record, if it does not already exists.voidunlock(LockConfiguration lockConfiguration) booleanupdateRecord(LockConfiguration lockConfiguration) Tries to update the lock record.
-
Method Details
-
insertRecord
Inserts a record, if it does not already exists. If it exists, returns false.- Parameters:
lockConfiguration- LockConfiguration- Returns:
- true if inserted
-
updateRecord
Tries to update the lock record. If there is already a valid lock record (the lock is held by someone else) update should not do anything and this method returns false.- Parameters:
lockConfiguration- LockConfiguration- Returns:
- true if updated
-
unlock
-
extend
-