michaelpearce-gain edited a comment on issue #56:
URL: https://github.com/apache/activemq-nms-amqp/pull/56#issuecomment-617625748
So actually the logic should be for non-persistent messages, you can always
do async even if sync send, because for non persistent there is no guaranteed
delivery.
For persistent, on send sync, you need to block for async you send async
(Aka non block), but return task, and or return result on completion listener
essentially we should change the NmsSession
bool sync = connection.isForceSyncSend() ||
(!connection.isForceAsyncSend() && deliveryMode
== DeliveryMode.PERSISTENT && !getTransacted());
sync = deliveryMode == listener == null ? !sync : true
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]