File tree Expand file tree Collapse file tree 3 files changed +25
-7
lines changed
src/main/java/com/rabbitmq/stream Expand file tree Collapse file tree 3 files changed +25
-7
lines changed Original file line number Diff line number Diff line change 1
- // Copyright (c) 2020-2023 Broadcom. All Rights Reserved.
1
+ // Copyright (c) 2020-2024 Broadcom. All Rights Reserved.
2
2
// The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
3
3
//
4
4
// This software, the RabbitMQ Stream Java client library, is dual-licensed under the
@@ -32,18 +32,26 @@ public interface Message {
32
32
/**
33
33
* Does this message has a publishing ID?
34
34
*
35
- * <p>Publishing IDs are used for de-duplication of outbound messages. They are not persisted.
35
+ * <p>Publishing IDs are used for deduplication of outbound messages. They are not persisted.
36
36
*
37
37
* @return true if the message has a publishing ID, false otherwise
38
+ * @see ProducerBuilder#name(String)
39
+ * @see <a
40
+ * href="https://rabbitmq.github.io/rabbitmq-stream-java-client/stable/htmlsingle/#outbound-message-deduplication">Deduplication
41
+ * documentation</a>
38
42
*/
39
43
boolean hasPublishingId ();
40
44
41
45
/**
42
46
* Get the publishing ID for the message.
43
47
*
44
- * <p>Publishing IDs are used for de-duplication of outbound messages. They are not persisted.
48
+ * <p>Publishing IDs are used for deduplication of outbound messages. They are not persisted.
45
49
*
46
50
* @return the publishing ID of the message
51
+ * @see ProducerBuilder#name(String)
52
+ * @see <a
53
+ * href="https://rabbitmq.github.io/rabbitmq-stream-java-client/stable/htmlsingle/#outbound-message-deduplication">Deduplication
54
+ * documentation</a>
47
55
*/
48
56
long getPublishingId ();
49
57
Original file line number Diff line number Diff line change 1
- // Copyright (c) 2020-2023 Broadcom. All Rights Reserved.
1
+ // Copyright (c) 2020-2024 Broadcom. All Rights Reserved.
2
2
// The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
3
3
//
4
4
// This software, the RabbitMQ Stream Java client library, is dual-licensed under the
@@ -38,12 +38,16 @@ public interface MessageBuilder {
38
38
Message build ();
39
39
40
40
/**
41
- * Set the publishing ID (for de-duplication ).
41
+ * Set the publishing ID (for deduplication ).
42
42
*
43
43
* <p>This is value is used only for outbound messages and is not persisted.
44
44
*
45
45
* @param publishingId
46
46
* @return this builder instance
47
+ * @see ProducerBuilder#name(String)
48
+ * @see <a
49
+ * href="https://rabbitmq.github.io/rabbitmq-stream-java-client/stable/htmlsingle/#outbound-message-deduplication">Deduplication
50
+ * documentation</a>
47
51
*/
48
52
MessageBuilder publishingId (long publishingId );
49
53
Original file line number Diff line number Diff line change 23
23
public interface ProducerBuilder {
24
24
25
25
/**
26
- * The logical name of the producer.
26
+ * The producer name for deduplication (<b>read the <a
27
+ * href="https://rabbitmq.github.io/rabbitmq-stream-java-client/stable/htmlsingle/#outbound-message-deduplication">documentation</a>
28
+ * before use</b>).
27
29
*
28
- * <p>Set a value to enable de-duplication .
30
+ * <p>There must be only one producer instance at the same time using a given name .
29
31
*
30
32
* @param name
31
33
* @return this builder instance
34
+ * @see MessageBuilder#publishingId(long)
35
+ * @see <a
36
+ * href="https://rabbitmq.github.io/rabbitmq-stream-java-client/stable/htmlsingle/#outbound-message-deduplication">Deduplication
37
+ * documentation</a>
32
38
*/
33
39
ProducerBuilder name (String name );
34
40
You can’t perform that action at this time.
0 commit comments