Class service_executor

Inheritance Relationships

Base Types

Class Documentation

class microlith::service_executor : public microlith::service<service_executor>, public microlith::provides_services<executable_interface>, public microlith::receives_services<executable_interface>

Simple executor class which manages starting and stopping of basic services.

The service_executor is itself an executable_interface: starting it starts all previously received services, and stopping does stops them.

A service_executor which has been previously stopped

Note

This class is provided as a convenience class, and many services may not have states analogous to “start” and “stop”: that’s ok.

Provides\n

Receives\n

See

executable_interface

Public Functions

~service_executor() override
void receive(std::shared_ptr<executable_interface> service) override
void start() override
void stop() override
bool started()