drpmma commented on code in PR #7439:
URL: https://github.com/apache/rocketmq/pull/7439#discussion_r1351829392
##########
common/src/main/java/org/apache/rocketmq/common/message/Message.java:
##########
@@ -218,14 +218,36 @@ public String toString() {
public void setDelayTimeSec(long sec) {
this.putProperty(MessageConst.PROPERTY_TIMER_DELAY_SEC,
String.valueOf(sec));
}
+
+ public long getDelayTimeSec() {
+ String t = this.getProperty(MessageConst.PROPERTY_TIMER_DELAY_SEC);
+ if (t != null) {
+ return Long.parseLong(t);
+ }
+ return 0;
+ }
+
+
public void setDelayTimeMs(long timeMs) {
this.putProperty(MessageConst.PROPERTY_TIMER_DELAY_MS,
String.valueOf(timeMs));
}
+
+ public long getDelayTimeMs() {
+ String t = this.getProperty(MessageConst.PROPERTY_TIMER_DELAY_MS);
+ if (t != null) {
+ return Long.parseLong(t);
+ }
+ return 0;
+ }
Review Comment:
format
--
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]