INT-4353: Let to set id for DefaultLockRepository
JIRA: https://jira.spring.io/browse/INT-4353 Updated based on code review * Polishing according PR comments **Cherry-pick to 4.3.x** # Conflicts: # src/reference/asciidoc/jdbc.adoc
This commit is contained in:
committed by
Artem Bilan
parent
bf51585908
commit
b82973660b
@@ -1005,3 +1005,5 @@ Therefore `prefix` property must be used on the `DefaultLockRepository` bean def
|
||||
Sometimes it happens that one application has moved to the state when it can't release distributed lock - remove the particular record in the data base.
|
||||
For this purpose such dead locks can be expired by the other application on the next locking invocation.
|
||||
The `timeToLive` (TTL) option on the `DefaultLockRepository` is provided for this purpose.
|
||||
The user may also want to specify `CLIENT_ID` for the locks stored for a given `DefaultLockRepository` instance.
|
||||
In this case you can specify the `id` to be associated with the `DefaultLockRepository` as a constructor parameter.
|
||||
|
||||
Reference in New Issue
Block a user