'Adds a :class:`cassandra.policies.HostStateListener` subclass instance to
the list of listeners to be notified when a host is added, removed,
marked up, or marked down.'

def register_listener(self, listener):

    with self._listener_lock:
        self._listeners.add(listener)
