Hi,

Sometimes, when trying to send a message to a broker it cannot be send
correctly due to high disk usage on broker's machine, so message is lost.

To face it I thought 2 different options:
1) Use sync parameter in send() call to wait for broker confirmation
2) To, asynchronously, take control of messages that have not been
confirmed and try to resend them.

As option 1 entail to process get blocked until broker confirm the
reception of the message, my choice is option 2. However, I don't know how
get the list of messages whose reception was not confirmed by broker.
Analyzing class Sender I find the method getUnsettled() that return the
number of unsettled messages, but nothing that return the list of messages.

Also, I have read that if connection fails, after reconnect, the unsettled
messages will be retransmitted, so I suspect that the retrieve of unsettled
messages could be possible.

So, in conclussion, my questions are:
Is possible to get the list of unsettled messages? If possible, how I can
get it?

Thank you in advance.

Reply via email to