[
https://issues.apache.org/jira/browse/ARTEMIS-3711?focusedWorklogId=741814&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-741814
]
ASF GitHub Bot logged work on ARTEMIS-3711:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 15/Mar/22 19:31
Start Date: 15/Mar/22 19:31
Worklog Time Spent: 10m
Work Description: clebertsuconic commented on a change in pull request
#3979:
URL: https://github.com/apache/activemq-artemis/pull/3979#discussion_r827341172
##########
File path:
artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/OpenWireMessageConverter.java
##########
@@ -224,6 +225,13 @@ public OpenWireMessageConverter() {
coreMessage.putStringProperty(AMQ_MSG_ORIG_DESTINATION,
origDest.getQualifiedName());
}
+ final Object scheduledDelay =
messageSend.getProperties().get(ScheduledMessage.AMQ_SCHEDULED_DELAY);
+ if (scheduledDelay instanceof Long) {
+
coreMessage.putLongProperty(org.apache.activemq.artemis.api.core.Message.HDR_SCHEDULED_DELIVERY_TIME,
System.currentTimeMillis() + ((Long) scheduledDelay));
+ // this property may have already been copied, but we don't need it
anymore
+ coreMessage.removeProperty(ScheduledMessage.AMQ_SCHEDULED_DELAY);
+ }
+
Review comment:
``
final Object scheduledDelay =
messageSend.getProperties().get(ScheduledMessage.AMQ_SCHEDULED_DELAY);
if (scheduledDelay instanceof Number) {
coreMessage.putLongProperty(org.apache.activemq.artemis.api.core.Message.HDR_SCHEDULED_DELIVERY_TIME,
System.currentTimeMillis() + ((Number) scheduledDelay).longValue());
// this property may have already been copied, but we don't need
it anymore
coreMessage.removeProperty(ScheduledMessage.AMQ_SCHEDULED_DELAY);
}
``
--
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]
Issue Time Tracking
-------------------
Worklog Id: (was: 741814)
Time Spent: 0.5h (was: 20m)
> Support AMQ_SCHEDULED_DELAY for OpenWire clients
> ------------------------------------------------
>
> Key: ARTEMIS-3711
> URL: https://issues.apache.org/jira/browse/ARTEMIS-3711
> Project: ActiveMQ Artemis
> Issue Type: Improvement
> Reporter: Justin Bertram
> Assignee: Justin Bertram
> Priority: Major
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Support {{AMQ_SCHEDULED_DELAY}} as described in the [ActiveMQ "Classic"
> documentation|https://activemq.apache.org/delay-and-schedule-message-delivery].
> This will help users migrating to Artemis.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)