Clio
develop
The XRP Ledger API server.
Theme:
Default
Round
Robot
Toggle main menu visibility
Loading...
Searching...
No Matches
MonitorProviderInterface.hpp
1
#pragma once
2
3
#include "data/BackendInterface.hpp"
4
#include "etl/MonitorInterface.hpp"
5
#include "
etl/NetworkValidatedLedgersInterface.hpp
"
6
#include "util/async/AnyExecutionContext.hpp"
7
8
#include <chrono>
9
#include <cstdint>
10
#include <memory>
11
12
namespace
etl
{
13
17
struct
MonitorProviderInterface
{
21
static
constexpr
auto
kDefaultDbStalledReportDelay
= std::chrono::seconds{10};
22
23
virtual
~MonitorProviderInterface
() =
default
;
24
35
[[nodiscard]]
virtual
std::unique_ptr<MonitorInterface>
36
make
(
37
util::async::AnyExecutionContext
ctx,
38
std::shared_ptr<BackendInterface> backend,
39
std::shared_ptr<NetworkValidatedLedgersInterface> validatedLedgers,
40
uint32_t startSequence,
41
std::chrono::steady_clock::duration dbStalledReportDelay =
kDefaultDbStalledReportDelay
42
) = 0;
43
};
44
45
}
// namespace etl
NetworkValidatedLedgersInterface.hpp
util::async::AnyExecutionContext
A type-erased execution context.
Definition
AnyExecutionContext.hpp:23
etl
This namespace contains everything to do with the ETL and ETL sources.
Definition
AmendmentBlockHandlerInterface.hpp:6
etl::MonitorProviderInterface
An interface for providing Monitor instances.
Definition
MonitorProviderInterface.hpp:17
etl::MonitorProviderInterface::make
virtual std::unique_ptr< MonitorInterface > make(util::async::AnyExecutionContext ctx, std::shared_ptr< BackendInterface > backend, std::shared_ptr< NetworkValidatedLedgersInterface > validatedLedgers, uint32_t startSequence, std::chrono::steady_clock::duration dbStalledReportDelay=kDefaultDbStalledReportDelay)=0
Create a new Monitor instance.
etl::MonitorProviderInterface::kDefaultDbStalledReportDelay
static constexpr auto kDefaultDbStalledReportDelay
The time Monitor should wait before reporting absence of updates to the database.
Definition
MonitorProviderInterface.hpp:21
src
etl
MonitorProviderInterface.hpp
Generated by
1.17.0