def handle_connection_change(self, state):
if state == client.KazooState.LOST:<EOL><INDENT>if not self.shutdown.is_set():<EOL><INDENT>logger.info("<STR_LIT>")<EOL><DEDENT>self.connected.clear()<EOL><DEDENT>elif state == client.KazooState.SUSPENDED:<EOL><INDENT>logger.info("<STR_LIT>")<EOL>self.connected.clear()<EOL><DEDENT>else:<EOL><INDENT>logger.info("<STR_LIT>")<EOL>self.connected.set()<EOL><DEDENT>
Callback for handling changes in the kazoo client's connection state.

If the connection becomes lost or suspended, the `connected` Event
is cleared.  Other given states imply that the connection is
established so `connected` is set.