22#include <boost/signals2/connection.hpp>
23#include <boost/signals2/signal.hpp>
24#include <boost/signals2/variadic_signal.hpp>
38 static constexpr auto kDEFAULT_REPEAT_INTERVAL = std::chrono::seconds{1};
39 using SignalType = boost::signals2::signal<void(uint32_t)>;
49 [[nodiscard]]
virtual boost::signals2::scoped_connection
50 subscribe(SignalType::slot_type
const& subscriber) = 0;
58 run(std::chrono::steady_clock::duration repeatInterval = kDEFAULT_REPEAT_INTERVAL) = 0;
An interface for the monitor service An implementation of this service is responsible for periodicall...
Definition MonitorInterface.hpp:36
virtual void run(std::chrono::steady_clock::duration repeatInterval=kDEFAULT_REPEAT_INTERVAL)=0
Run the monitor service.
virtual void stop()=0
Stops the monitor service.
virtual boost::signals2::scoped_connection subscribe(SignalType::slot_type const &subscriber)=0
Allows clients to get notified when a new ledger becomes available in Clio's database.