learner
learner

Reputation: 1982

What all problems with broker or network can be detected using Transport Listener?

What all problems with broker or network can be detected using Transport Listener?

I am using failover uri with master/slave architecture. I want my clients to get notify if there is any problem with connection from client to broker. Though as soon as there will be problem with primary, failover will takeover and vice versa, but I want my client to know that there was some problem.

I know I can implement TransportListener and set it to my connection..but what all can be detected using TransportListener?

Upvotes: 0

Views: 76

Answers (1)

Tim Bish
Tim Bish

Reputation: 18356

The transport listener has events for connection interrupted and connection restored which would inform you client that the link between it and the broker has failed for some reason. This doesn't necessary mean the broker went down as the network between the two could also be at fault but it is the only real indication you can get at the client level of such information.

Upvotes: 1

Related Questions