syhily commented on a change in pull request #17452:
URL: https://github.com/apache/flink/pull/17452#discussion_r805890545
##########
File path:
flink-connectors/flink-connector-pulsar/src/main/java/org/apache/flink/connector/pulsar/sink/writer/PulsarWriter.java
##########
@@ -205,6 +209,12 @@ public void write(IN element, Context context) throws
IOException, InterruptedEx
builder.disableReplication();
}
+ // Message Delay
+ long deliverAt = messageDelayer.deliverAt(element, context);
+ if (deliverAt > 0) {
+ builder.deliverAt(deliverAt);
Review comment:
Message delayer would only add an extra `sending time` property. It
doesn't change any behavior of the message sending. A message with delayer
would be normally sent, flushed on the checkpoint, and so on. We add this
feature for some user-specified requirements, [message delay
delivery](https://pulsar.apache.org/docs/en/next/concepts-messaging/#delayed-message-delivery)
is wildly used in some companies like Baidu.
--
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]