cshannon commented on code in PR #2272:
URL: https://github.com/apache/activemq/pull/2272#discussion_r3707206252


##########
activemq-client/src/main/java/org/apache/activemq/ActiveMQProducer.java:
##########
@@ -246,12 +246,16 @@ public long getTimeToLive() {
 
     @Override
     public JMSProducer setDeliveryDelay(long deliveryDelay) {
-        throw new UnsupportedOperationException("setDeliveryDelay(long) is not 
supported");
+        if (deliveryDelay != 0L) {
+            throw new UnsupportedOperationException("setDeliveryDelay(long) is 
not supported");
+        }
+
+        return this;
     }
 
     @Override
     public long getDeliveryDelay() {
-        throw new UnsupportedOperationException("getDeliveryDelay() is not 
supported");
+       return 0L;

Review Comment:
   indentation looks off



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to