Notification when Durable consumer is cleaned up #761
-
Hello! The only way that I found was to call GetConsumerInformation() on a subscription and if this returns null, it means that consumer is removed. Although this works, I wonder if there is any other way to get notified, e.g. some event maybe? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
You can use the management functions GetConsumerInfo/GetConsumerNames , but GetConsumerInfo is what is called from GetConsumerInformation(). Either way it's a round trip to the server. There may be server advisories that you could subscribe to (advisories are subjects the server publishes too) but you would have to ask that in the general slack, I'm not sure if they are documented. Are you having issues with the feature? Could you explain your use case. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
See the next comment for some sample code to demonstrate.