Clio develop
The XRP Ledger API server.
|
An interface for providing Monitor instances. More...
#include <MonitorProviderInterface.hpp>
Public Member Functions | |
virtual std::unique_ptr< MonitorInterface > | make (util::async::AnyExecutionContext ctx, std::shared_ptr< BackendInterface > backend, std::shared_ptr< etl::NetworkValidatedLedgersInterface > validatedLedgers, uint32_t startSequence, std::chrono::steady_clock::duration dbStalledReportDelay=kDEFAULT_DB_STALLED_REPORT_DELAY)=0 |
Create a new Monitor instance. | |
Static Public Attributes | |
static constexpr auto | kDEFAULT_DB_STALLED_REPORT_DELAY = std::chrono::seconds{10} |
The time Monitor should wait before reporting absence of updates to the database. | |
An interface for providing Monitor instances.
|
nodiscardpure virtual |
Create a new Monitor instance.
ctx | The execution context for asynchronous operations |
backend | Interface to the backend database |
validatedLedgers | Interface for accessing network validated ledgers |
startSequence | The sequence number to start monitoring from |
dbStalledReportDelay | The timeout duration after which to signal no database updates |
Implemented in etlng::impl::MonitorProvider.