I’m new to HiveMQ and have a few questions regarding Publish Outbound Interceptor:
I got to know from the documentation that we can use Publish Outbound Interceptor to prevent the delivery of a PUBLISH message at the moment it is sent to its subscriber.
Is there a way to retrieve all the intended recipients/subscribers of this message at this point?
If this message has multiple subscribers, does preventPublishDelivery() of PublishOutboundOutput prevent the message delivery to all its subscribers?
I’m looking to write an extension that intercepts every message going out from HiveMQ broker to the subscribers and prevents the message delivery to certain subscribers only.
- Can this be done using preventPublishDelivery() of PublishOutboundOutput? Please could anyone shed some light on this?