You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/reference/antora/modules/ROOT/pages/distributed-locks.adoc
+3-3
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ However, the problem becomes more complex when an application is distributed and
8
8
The locking in this case is challenging and requires some shared state and its specific approach to achieve the exclusivity requirement.
9
9
10
10
Spring Integration provides a `LockRegistry` abstraction with an in-memory `DefaultLockRegistry` implementation based on the `ReentrantLock` API.
11
-
The `obtain(Object)` method of the `LockRegistrty` requires a `lock key` for specific context.
11
+
The `obtain(Object)` method of the `LockRegistry` requires a `lock key` for specific context.
12
12
For example, an aggregator uses a `correlationKey` to lock operations around its group.
13
13
This way different locks can be used concurrently.
14
14
This `obtain(Object)` method returns a `java.util.concurrent.locks.Lock` instance (depending on the `LockRegistry` implementation), therefore the rest of the logic is the same as standard Java Concurrency algorithm.
0 commit comments