event_topic_factory¶
- class maze.core.events.event_topic_factory.event_topic_factory(interface_class: Type[T], fn_notify_event: Callable[[EventRecord], None])¶
Constructs a proxy instance of the event interface, as required by EventService and LogStatsAggregator.
- Parameters:
interface_class – The class object of an abstract interface that defines the events as methods.
fn_notify_event – The proxy forwards all method invocations to fn_notify_event
- Returns:
A proxy object, dynamically derived from the passed interface_class.