def handle_event_entry( key_data, value_data, old_value_data, merging_value_data, event_type, uuid, number_of_affected_entries, ): event = EntryEvent( self._to_object(key_data), self._to_object(value_data), self._to_object(old_value_data), self._to_object(merging_value_data), event_type, uuid, number_of_affected_entries, ) 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.UPDATED and updated_func: updated_func(event) elif event.event_type == EntryEventType.EVICTED and evicted_func: evicted_func(event) elif event.event_type == EntryEventType.CLEAR_ALL and clear_all_func: clear_all_func(event)
def handle_event_entry(**_kwargs): event = EntryEvent(self._to_object, **_kwargs) if event.event_type == EntryEventType.added and added: added(event) elif event.event_type == EntryEventType.removed and removed: removed(event) elif event.event_type == EntryEventType.clear_all and clear_all: clear_all(event)
def handle_event_entry(key, value, old_value, merging_value, event_type, uuid, number_of_affected_entries): event = EntryEvent(self._to_object, key, value, old_value, merging_value, event_type, uuid, number_of_affected_entries) 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)
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.updated and updated_func: updated_func(event) elif event.event_type == EntryEventType.evicted and evicted_func: evicted_func(event) elif event.event_type == EntryEventType.clear_all and clear_all_func: clear_all_func(event)
def handle_event_entry(**_kwargs): event = EntryEvent(self._to_object, **_kwargs) if event.event_type == EntryEventType.added: added(event) elif event.event_type == EntryEventType.removed: removed(event) elif event.event_type == EntryEventType.updated: updated(event) elif event.event_type == EntryEventType.evicted: evicted(event) elif event.event_type == EntryEventType.evict_all: evict_all(event) elif event.event_type == EntryEventType.clear_all: clear_all(event) elif event.event_type == EntryEventType.merged: merged(event) elif event.event_type == EntryEventType.expired: expired(event)