Adds an entry listener for this multimap. The listener will be notified for all multimap add/remove/clear-all
        events.

        :param include_value: (bool), whether received event should include the value or not (optional).
        :param key: (object), key for filtering the events (optional).
        :param added_func: Function to be called when an entry is added to map (optional).
        :param removed_func: Function to be called when an entry is removed_func from map (optional).
        :param clear_all_func: Function to be called when entries are cleared from map (optional).
        :return: (str), a registration id which is used as a key to remove the listener.

def add_entry_listener(self, include_value=False, key=None, added_func=None, removed_func=None, clear_all_func=None):
        """
        Adds an entry listener for this multimap. The listener will be notified for all multimap add/remove/clear-all
        events.

        :param include_value: (bool), whether received event should include the value or not (optional).
        :param key: (object), key for filtering the events (optional).
        :param added_func: Function to be called when an entry is added to map (optional).
        :param removed_func: Function to be called when an entry is removed_func from map (optional).
        :param clear_all_func: Function to be called when entries are cleared from map (optional).
        :return: (str), a registration id which is used as a key to remove the listener.
        """
        if key:
            key_data = self._to_data(key)
            request = multi_map_add_entry_listener_to_key_codec.encode_request(name=self.name, key=key_data,
                                                                               include_value=include_value,
                                                                               local_only=False)
        else:
            request = multi_map_add_entry_listener_codec.encode_request(name=self.name, include_value=include_value,
                                                                        local_only=False)

        def handle_event_entry(**_kwargs):
            event = EntryEvent(self._to_object, **_kwargs)
            if event.event_type == EntryEventType.added and added_func:
                added_func(event)
            elif event.event_type == EntryEventType.removed and removed_func:
                removed_func(event)
            elif event.event_type == EntryEventType.clear_all and clear_all_func:
                clear_all_func(event)

        return self._start_listening(request,
                                     lambda m: multi_map_add_entry_listener_codec.handle(m,
                                                                                         handle_event_entry),
                                     lambda r: multi_map_add_entry_listener_codec.decode_response(r)[
                                         'response'])