Skip to content

Commit 5f5d40c

Browse files
committed
Add document about the lock of AbstractMessageGroupStore
1 parent ab0519d commit 5f5d40c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/reference/antora/modules/ROOT/pages/message-store.adoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,3 +158,12 @@ It also allows the end marker to arrive at the aggregator before all the other r
158158

159159
In addition, for configuration convenience, a `GroupConditionProvider` contract has been introduced.
160160
The `AbstractCorrelatingMessageHandler` checks if the provided `ReleaseStrategy` implements this interface and extracts a `conditionSupplier` for group condition evaluation logic.
161+
162+
[[use-lock-registry]]
163+
== Use LockRegistry
164+
165+
Starting with version 6.5, the `MessageStore` abstraction operate the metadata of message group with lock.
166+
This lock acquires the groupId and generated by `LockRegister`.
167+
Its purpose is to operate on the atomicity of messages and message groups.
168+
In multiple threads, adding or removing messages or updating metadata at the same time, some implementations may have message group errors if the lock is missing.
169+
By default, `LockRegister` uses `DefaultLockRegistry`, and developers can set it to the implementation they need through `setLockRegistry`

0 commit comments

Comments
 (0)