|
ledger-core
|
#include <EventBus.hpp>
Inheritance diagram for ledger::core::api::EventBus:Public Member Functions | |
| virtual void | subscribe (const std::shared_ptr< ExecutionContext > &context, const std::shared_ptr< EventReceiver > &receiver)=0 |
| virtual void | unsubscribe (const std::shared_ptr< EventReceiver > &receiver)=0 |
Class representing an event bus through which a receiver gets notified.
|
pure virtual |
Subscribe an event receiver to the event bus.
| context,ExecutionContext | object, execution context in which receiver will be notified |
| reveiver,EventReceiver | object, receiver that event bu will notify |
|
pure virtual |
Unsubscribe an event receiver from the event bus.
| receiver,EventReceiver | object, receiver to unsubscribe |
1.8.13