|
Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
|
Interface for components that subscribe to events. More...
#include <event_bus_interface.h>

Public Member Functions | |
| virtual | ~interface_event_subscriber ()=default |
| virtual common::VoidResult | subscribe_to_events (std::shared_ptr< interface_event_bus > bus)=0 |
| Subscribe to required events. | |
| virtual common::VoidResult | unsubscribe_from_events ()=0 |
| Unsubscribe from all events. | |
| virtual std::vector< subscription_token > | get_subscriptions () const =0 |
| Get subscription tokens. | |
Interface for components that subscribe to events.
Components implementing this interface can subscribe to events from an event bus. This provides lifecycle management for subscriptions and ensures proper cleanup when components are destroyed.
Definition at line 485 of file event_bus_interface.h.
|
virtualdefault |
|
pure virtual |
Get subscription tokens.
|
pure virtual |
Subscribe to required events.
| bus | The event bus to subscribe to |
|
pure virtual |
Unsubscribe from all events.