ledger-core
Public Member Functions | List of all members
ledger::core::EventPublisher Class Reference
+ Inheritance diagram for ledger::core::EventPublisher:
+ Collaboration diagram for ledger::core::EventPublisher:

Public Member Functions

 EventPublisher (std::shared_ptr< api::ExecutionContext > context)
 
std::shared_ptr< api::EventBusgetEventBus () override
 
void post (const std::shared_ptr< api::Event > &event) override
 
void postSticky (const std::shared_ptr< api::Event > &event, int32_t tag) override
 
void relay (const std::shared_ptr< api::EventBus > &bus) override
 
void setFilter (const EventFilter &filter)
 
- Public Member Functions inherited from ledger::core::api::EventPublisher
virtual void post (const std::shared_ptr< Event > &event)=0
 
virtual void postSticky (const std::shared_ptr< Event > &event, int32_t tag)=0
 
virtual void relay (const std::shared_ptr< EventBus > &bus)=0
 
- Public Member Functions inherited from ledger::core::DedicatedContext
 DedicatedContext (const std::shared_ptr< api::ExecutionContext > &context)
 
template<typename T >
Future< T > async (std::function< T()> f)
 
template<typename T >
Future< T > async (std::function< T()> f) const
 
Future< Unitrun (std::function< void()> f)
 
std::shared_ptr< api::ExecutionContextgetContext () const
 

Additional Inherited Members

- Static Public Member Functions inherited from ledger::core::api::EventPublisher
static std::shared_ptr< EventPublishernewInstance (const std::shared_ptr< ExecutionContext > &context)
 
- Protected Attributes inherited from ledger::core::DedicatedContext
std::shared_ptr< api::ExecutionContext_executionContext
 

Member Function Documentation

◆ getEventBus()

std::shared_ptr< api::EventBus > ledger::core::EventPublisher::getEventBus ( )
overridevirtual

Get event bus through which publisher broadcast its events.

Returns
EventBus object

Implements ledger::core::api::EventPublisher.


The documentation for this class was generated from the following files: