LeBW commented on a change in pull request #11553:
URL: https://github.com/apache/pulsar/pull/11553#discussion_r686933272
##########
File path:
pulsar-client-api/src/main/java/org/apache/pulsar/client/api/Message.java
##########
@@ -245,4 +245,22 @@
* @since 2.8.0
*/
void release();
+
+ /**
+ * Get broker publish time from broker entry metadata.
+ * Note that only if the feature is enabled in the broker then the value
is available.
+ *
+ * @since 2.9.0
+ * @return broker publish time from broker entry metadata, or empty if the
feature is not enabled in the broker.
+ */
+ Optional<Long> getBrokerPublishTime();
+
+ /**
+ * Get index from broker entry metadata.
+ * Note that only if the feature is enabled in the broker then the value
is available.
+ *
+ * @since 2.9.0
+ * @return index from broker entry metadata, or empty if the feature is
not enabled in the broker.
+ */
+ Optional<Long> getIndex();
Review comment:
Done
--
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]