Clio  develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
etl::impl::MonitorProvider Class Reference
Inheritance diagram for etl::impl::MonitorProvider:
Collaboration diagram for etl::impl::MonitorProvider:

Public Member Functions

std::unique_ptr< MonitorInterfacemake (util::async::AnyExecutionContext ctx, std::shared_ptr< BackendInterface > backend, std::shared_ptr< NetworkValidatedLedgersInterface > validatedLedgers, uint32_t startSequence, std::chrono::steady_clock::duration dbStalledReportDelay) override
 Create a new Monitor instance.

Additional Inherited Members

Static Public Attributes inherited from etl::MonitorProviderInterface
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.

Member Function Documentation

◆ make()

std::unique_ptr< MonitorInterface > etl::impl::MonitorProvider::make ( util::async::AnyExecutionContext ctx,
std::shared_ptr< BackendInterface > backend,
std::shared_ptr< NetworkValidatedLedgersInterface > validatedLedgers,
uint32_t startSequence,
std::chrono::steady_clock::duration dbStalledReportDelay )
inlineoverridevirtual

Create a new Monitor instance.

Parameters
ctxThe execution context for asynchronous operations
backendInterface to the backend database
validatedLedgersInterface for accessing network validated ledgers
startSequenceThe sequence number to start monitoring from
dbStalledReportDelayThe timeout duration after which to signal no database updates
Returns
A unique pointer to a Monitor implementation

Implements etl::MonitorProviderInterface.


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