Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Paho » How to NOT acknowledge a message(Is is possible in Paho to not acknowledge a received message?)
How to NOT acknowledge a message [message #1743457] Thu, 15 September 2016 14:49 Go to next message
Alberto Anguita is currently offline Alberto AnguitaFriend
Messages: 4
Registered: September 2016
Junior Member
I have a project in which incomming QoS=2 messages from the broker are handed to an API. However, this process might fail, or take to long, in which case I would like to indicate Paho that I don't want the message to be acknowledged (so that the broker will eventually send it again).

I saw in the documentation that the ACK is sent once the messageArrived() terminates cleanly. Is it possible to tell Paho not to send the ACK?

Regards.
Re: How to NOT acknowledge a message [message #1744283 is a reply to message #1743457] Fri, 23 September 2016 21:14 Go to previous messageGo to next message
Ian Craggs is currently offline Ian CraggsFriend
Messages: 83
Registered: March 2013
Member
You can do this in the Java client by calling the setManualAcks method. Another method is available to indicate when you want the ack to be sent.

Ian
Re: How to NOT acknowledge a message [message #1744552 is a reply to message #1744283] Wed, 28 September 2016 07:47 Go to previous message
Alberto Anguita is currently offline Alberto AnguitaFriend
Messages: 4
Registered: September 2016
Junior Member
Thanks a lot!
Previous Topic:Paho (java) concurrency model
Next Topic:Client is not subscribing in paho C
Goto Forum:
  


Current Time: Fri Apr 26 20:45:35 GMT 2024

Powered by FUDForum. Page generated in 0.03084 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top