Broker Cluster Publisher Connection Notification
The connection notification allows you to register a callback method for a BrokerClusterPublisher. The connection notification is invoked when a Broker client is added or removed from the Broker cluster publisher pool as triggered by the territory change activity on cluster monitor client. The connection notification feature is particularly useful for determining which Broker is available for cluster operations when there is a lot of join or leave activity on the territory.
Note:
The connection callback method has a global scope and only a single callback can be active at any given time. Registering a callback cancels the previously registered callbacks. Note that this connection callback on a BrokerClusterPublisher is not the same as the connection callback on a Broker client.