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

Public Member Functions

std::unique_ptr< MonitorInterfacemake (util::async::AnyExecutionContext ctx, std::shared_ptr< BackendInterface > backend, std::shared_ptr< etl::NetworkValidatedLedgersInterface > validatedLedgers, uint32_t startSequence, std::chrono::steady_clock::duration dbStalledReportDelay) override
 Create a new Monitor instance.
 
- Public Member Functions inherited from etlng::MonitorProviderInterface

Additional Inherited Members

- Static Public Attributes inherited from etlng::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 > etlng::impl::MonitorProvider::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 )
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 etlng::MonitorProviderInterface.


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