When we get a SessionExpired event, we lost all ephemeral nodes and zkclient has reestablished a connection for us.
When we get a SessionExpired event, we lost all ephemeral nodes and zkclient has reestablished a connection for us. We need to re-register this broker in the broker registry.
Register this broker as "alive" in zookeeper
This class registers the broker in zookeeper to allow other brokers and consumers to detect failures. It uses an ephemeral znode with the path: /brokers/[0...N] --> advertisedHost:advertisedPort
Right now our definition of health is fairly naive. If we register in zk we are healthy, otherwise we are dead.