Skip to content

Commit 3d315b8

Browse files
committed
Use "strictly increasing" to describe publishing ID
Not monotonic.
1 parent c4ebd92 commit 3d315b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/docs/asciidoc/api.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ stream at the same time.
533533
The producer name is only one part of the de-duplication mechanism, the other part
534534
is the _message publishing ID_. If the producer has a name, the client automatically
535535
assigns a publishing ID to each outbound message for the producer. The publishing ID
536-
is a monotonic sequence, starting at 0 and incremented for each message. The default
536+
is a strictly increasing sequence, starting at 0 and incremented for each message. The default
537537
publishing sequence is good enough for de-duplication, but it is possible to
538538
assign a publishing ID to each message:
539539

@@ -547,7 +547,7 @@ include::{test-examples}/ProducerUsage.java[tag=message-with-publishing-id]
547547
There are a few rules to follow when using a custom publishing ID sequence:
548548

549549
* the sequence should start at 0
550-
* the sequence must be monotonic, that is always increments
550+
* the sequence must be strictly increasing
551551
* there can be gaps in the sequence (e.g. 0, 1, 2, 3, 6, 7, 9, 10, etc)
552552

553553
A custom publishing ID sequence has usually a meaning: it can be the line number of a file

0 commit comments

Comments
 (0)