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: spring-kafka-docs/src/main/asciidoc/kafka.adoc
+19-19Lines changed: 19 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -275,8 +275,8 @@ Then, to use the template, you can invoke one of its methods.
275
275
When you use the methods with a `Message<?>` parameter, the topic, partition, and key information is provided in a message header that includes the following items:
276
276
277
277
* `KafkaHeaders.TOPIC`
278
-
* `KafkaHeaders.PARTITION_ID`
279
-
* `KafkaHeaders.MESSAGE_KEY`
278
+
* `KafkaHeaders.PARTITION`
279
+
* `KafkaHeaders.KEY`
280
280
* `KafkaHeaders.TIMESTAMP`
281
281
282
282
The message payload is the data.
@@ -831,7 +831,7 @@ In this example, we use the reply topic header from the request:
@@ -1474,13 +1474,13 @@ Finally, metadata about the record is available from message headers.
1474
1474
You can use the following header names to retrieve the headers of the message:
1475
1475
1476
1476
* `KafkaHeaders.OFFSET`
1477
-
* `KafkaHeaders.RECEIVED_MESSAGE_KEY`
1477
+
* `KafkaHeaders.RECEIVED_KEY`
1478
1478
* `KafkaHeaders.RECEIVED_TOPIC`
1479
-
* `KafkaHeaders.RECEIVED_PARTITION_ID`
1479
+
* `KafkaHeaders.RECEIVED_PARTITION`
1480
1480
* `KafkaHeaders.RECEIVED_TIMESTAMP`
1481
1481
* `KafkaHeaders.TIMESTAMP_TYPE`
1482
1482
1483
-
Starting with version 2.5 the `RECEIVED_MESSAGE_KEY` is not present if the incoming record has a `null` key; previously the header was populated with a `null` value.
1483
+
Starting with version 2.5 the `RECEIVED_KEY` is not present if the incoming record has a `null` key; previously the header was populated with a `null` value.
1484
1484
This change is to make the framework consistent with `spring-messaging` conventions where `null` valued headers are not present.
1485
1485
1486
1486
The following example shows how to use the headers:
@@ -1490,8 +1490,8 @@ The following example shows how to use the headers:
Copy file name to clipboardExpand all lines: spring-kafka/src/main/java/org/springframework/kafka/listener/adapter/MessagingMessageListenerAdapter.java
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2016-2021 the original author or authors.
2
+
* Copyright 2016-2022 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
0 commit comments