Skip to content

Commit e4c1015

Browse files
committed
GH-2640: Add KafkaHeader Changes to What's New
Resolves #2640
1 parent 4eacaa9 commit e4c1015

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

spring-kafka-docs/src/main/asciidoc/whats-new.adoc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,14 @@ See <<replying-template>> and <<exchanging-messages>>.
8787

8888
You can now use a custom correlation header which will be echoed in any reply message.
8989
See the note at the end of <<replying-template>> for more information.
90+
91+
[[x30-headers]]
92+
==== `KafkaHeaders` Changes
93+
94+
Four constants in `KafkaHeaders` that were deprecated in 2.9.x have now been removed.
95+
96+
* Instead of `MESSAGE_KEY`, use `KEY`.
97+
98+
* Instead of `PARTITION_ID`, use `PARTITION`
99+
100+
Similarly, `RECEIVED_MESSAGE_KEY` is replaced by `RECEIVED_KEY` and `RECEIVED_PARTITION_ID` is replaced by `RECEIVED_PARTITION`.

0 commit comments

Comments
 (0)