Skip to content

Commit f4f246d

Browse files
authored
Fix typos in the distributed-locks.adoc
1 parent f47b61d commit f4f246d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/reference/antora/modules/ROOT/pages/distributed-locks.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ However, the problem becomes more complex when an application is distributed and
88
The locking in this case is challenging and requires some shared state and its specific approach to achieve the exclusivity requirement.
99

1010
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.
1212
For example, an aggregator uses a `correlationKey` to lock operations around its group.
1313
This way different locks can be used concurrently.
1414
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.
@@ -27,11 +27,11 @@ registry.executeLocked("someLockKey", () -> someExclusiveResourceCall());
2727
The method rethrows an exception from the task call, throws an `InterruptedException` if `Lock` is interrupted.
2828
In addition, a variant with `Duration` throws a `java.util.concurrent.TimeoutException` when `lock.tryLock()` returns `false`.
2929

30-
Spring Integration provides these `LockRegistrty` implementations for distributed locks:
30+
Spring Integration provides these `LockRegistry` implementations for distributed locks:
3131

3232
* xref:hazelcast.adoc#hazelcast-lock-registry[Hazelcast]
3333
* xref:jdbc/lock-registry.adoc[JDBC]
3434
* xref:redis.adoc#redis-lock-registry[Redis]
3535
* xref:zookeeper.adoc#zk-lock-registry[Zookeeper]
3636

37-
https://github.com/spring-projects/spring-integration-aws[Spring Integration AWS] extension also implements a `DynamoDbLockRegistry`.
37+
https://github.com/spring-projects/spring-integration-aws[Spring Integration AWS] extension also implements a `DynamoDbLockRegistry`.

0 commit comments

Comments
 (0)