|
lintel 0.2.0
|
#include <EventBusService.h>
Public Member Functions | |
| EventBusService (const std::shared_ptr< Configuration > &configuration, std::shared_ptr< ProcessName > processName, std::shared_ptr< SharedMemoryService > sharedMemoryService, std::shared_ptr< SharedMemorySegmentManager > segmentManager) | |
| std::shared_ptr< IEventBus > | of (const std::string &name) |
| void | onInitialize () override |
| void | onShutdown () override |
Public Member Functions inherited from lintel::AbstractService< EventBusService > | |
| AbstractService ()=delete | |
| AbstractService (std::string processName, std::string instanceName) | |
| AbstractService (std::string processName) | |
| ShutdownPriority | shutdownPriorityOf () const override |
| const std::string & | getProcessName () const override |
| const std::string & | getInstanceName () const override |
| std::string_view | getClassName () const override |
Public Member Functions inherited from lintel::AbstractServiceInterface | |
| virtual | ~AbstractServiceInterface ()=default |
Additional Inherited Members | |
Protected Attributes inherited from lintel::AbstractService< EventBusService > | |
| std::vector< std::shared_ptr< PropertyBase > > | m_properties |
Service that manages the lifecycle and access to EventBus instances stored in shared memory segments. Consumers receive an IEventBus view that forwards to the EventBus object in the segment.
| lintel::EventBusService::EventBusService | ( | const std::shared_ptr< Configuration > & | configuration, |
| std::shared_ptr< ProcessName > | processName, | ||
| std::shared_ptr< SharedMemoryService > | sharedMemoryService, | ||
| std::shared_ptr< SharedMemorySegmentManager > | segmentManager | ||
| ) |
Construct an EventBusService.
| configuration | the application configuration |
| processName | the current process name |
| sharedMemoryService | the shared memory service |
| segmentManager | the shared memory segment manager |
Get a view of the named event bus.
| name | the bus name |
| std::runtime_error | if the bus is not configured |
|
overridevirtual |
Construct all configured event buses in their segments.
Reimplemented from lintel::AbstractService< EventBusService >.
|
inlineoverridevirtual |
Default shutdown does nothing; override in subclasses.
Reimplemented from lintel::AbstractService< EventBusService >.