🎄 Happy Holidays! 🥳

Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.

Happy Holidays!

Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.

Number of Unacknowledged Messages

scott
scott Member Posts: 1

Hello All,

I am trying to clean up the shutdown of my service, and delay it until all messages have been processed. I call the Stop() method on all of my IFlows, but I then want it to wait until the number of Unacknowledged messages drops to 0. I can see in the console the number of unacknowledged messages on the consumer, but is there a property or a way to get this on the IFlow itself?

I am using ClientAck and the .NET SolaceSystems.Solclient.Messaging SDK 10.24.0.

Thanks

Tagged:

Answers

  • Emerson Chen
    Emerson Chen Member, Employee Posts: 7 Solace Employee

    Just curious, why is it necessary to know that information? If you just want to ensure no messages is lost, you can simply disconnect from the broker because the broker will not delete any message until it acknowledged by the client. Otherwise, the messages will be held in the API layer in case you want to resume the message flow.