Clio develop
The XRP Ledger API server.
|
GRPC Ledger data fetcher. More...
#include <LedgerFetcher.hpp>
Public Types | |
using | OptionalGetLedgerResponseType = typename LoadBalancerType::OptionalGetLedgerResponseType |
Public Member Functions | |
LedgerFetcher (std::shared_ptr< BackendInterface > backend, std::shared_ptr< LoadBalancerType > balancer) | |
Create an instance of the fetcher. | |
OptionalGetLedgerResponseType | fetchData (uint32_t sequence) |
Extract data for a particular ledger from an ETL source. | |
OptionalGetLedgerResponseType | fetchDataAndDiff (uint32_t sequence) |
Extract diff data for a particular ledger from an ETL source. | |
GRPC Ledger data fetcher.
|
inlinenodiscard |
Extract data for a particular ledger from an ETL source.
This function continously tries to extract the specified ledger (using all available ETL sources) until the extraction succeeds, or the server shuts down.
sequence | sequence of the ledger to extract |
|
inlinenodiscard |
Extract diff data for a particular ledger from an ETL source.
This function continously tries to extract the specified ledger (using all available ETL sources) until the extraction succeeds, or the server shuts down.
sequence | sequence of the ledger to extract |