Skip to content

How to properly manage subscriptions #5105

Closed Answered by marcellorinaldo
pintify asked this question in Q&A
Discussion options

You must be logged in to vote

I've been checking this guide regarding Cloud Connectors implementation but I'm a bit confused about the CloudSubscriptionRecord.

The documentation specifies that the key for the subscriptions map should not be only the topic but also the QoS, however the CloudSubscriptionRecord proposed as example only uses the topic to process hashCode, equals and match. I get how the match method is useful considering only the topic so that it can be filtered in the entrySet. But how can the HashMap tell different CloudSubscriptionRecord by QoS if the equals and hash method only checks topic? Is there something I'm missing?

Yes, the CloudSubscriptionRecord should implement a check also for the QoS as…

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@marcellorinaldo
Comment options

@pintify
Comment options

@pintify
Comment options

Comment options

You must be logged in to vote
1 reply
@pintify
Comment options

Comment options

You must be logged in to vote
1 reply
@pintify
Comment options

Answer selected by pintify
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants