hachikuji commented on code in PR #15097:
URL: https://github.com/apache/kafka/pull/15097#discussion_r1440744523


##########
clients/src/main/java/org/apache/kafka/common/header/Headers.java:
##########
@@ -69,4 +69,10 @@ public interface Headers extends Iterable<Header> {
      */
     Header[] toArray();
 
+    /**
+     * Set Header to readonly.
+     */
+    default void setReadOnly() {

Review Comment:
   Hmm, I don't think `setReadOnly` was ever intended to be public. The class 
`RecordHeaders` is in `internals`. We just use this method as a way to prevent 
modification once the headers have been passed to the producer.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to