chia7712 commented on code in PR #16872:
URL: https://github.com/apache/kafka/pull/16872#discussion_r1715876530
##########
clients/src/main/java/org/apache/kafka/clients/consumer/ConsumerRecord.java:
##########
@@ -296,13 +223,23 @@ public Optional<Integer> leaderEpoch() {
return leaderEpoch;
}
+ /**
+ * Get the delivery count for the record if available
+ *
+ * @return the delivery count or empty when deliveries not counted
Review Comment:
out of curiosity: Is `Optional.of(0)` equal to `Optional.empty`? Both of
them means "deliveries not counted"
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]