non durable endpoint
Question 1:
when will the non durable endpoint be removed in solace ??
==> When the client session is fully going down ?? received SessionEvent.SessionDown ???
==> In case the client session is recovered successfully through the reconnecting mechanism [ Receive SessionEvent.Reconnecting and SessionEvent.Reconnected]..
Then, the non durable endpoint would still exist at solace appliance ??
Question 2:
how can i add topics subscription to a non-durable queue ??
Is there any sample code in c# ??? Thanks.
Best Answer
-
The 60 seconds is non-configurable, however a client application that has the correct permissions can de-provision an endpoint sooner if it is not needed.
This video walks through queue durability, including a code example!
0
Answers
-
A non-durable endpoint will be removed from solace 60 seconds after the client that created it disconnects from the broker. The 60 seconds allows the client to reconnect before the non-durable endpoint and its contents are deleted.
To add a subscription to a non-durable queue, that can be achieved through the client application.
session.Subscribe(queue, topicA, SubscribeFlag.WaitForConfirm, null);
Where queue is your non-durable queue, topicA is the topic you would like to add to your queue, and the optional flag confirms the subscription has been applied successfully to the queue.
https://docs.solace.com/API-Developer-Online-Ref-Documentation/net/html/95cb9c32-8e36-44fd-5f9f-facd8eb76502.htm2 -
The 60 seconds is non-configurable, however a client application that has the correct permissions can de-provision an endpoint sooner if it is not needed.
This video walks through queue durability, including a code example!
0