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

Public Types

using RawLedgerObjectType = org::xrpl::rpc::v1::RawLedgerObject
 
using GetLedgerResponseType = org::xrpl::rpc::v1::GetLedgerResponse
 
using OptionalGetLedgerResponseType = std::optional<GetLedgerResponseType>
 

Public Member Functions

 Loader (std::shared_ptr< BackendInterface > backend, std::shared_ptr< etl::LedgerFetcherInterface > fetcher, std::shared_ptr< RegistryInterface > registry, std::shared_ptr< AmendmentBlockHandlerInterface > amendmentBlockHandler)
 
void load (model::LedgerData const &data) override
 Load ledger data.
 
void onInitialLoadGotMoreObjects (uint32_t seq, std::vector< model::Object > const &data, std::optional< std::string > lastKey) override
 Callback for each incoming batch of objects during initial ledger load.
 
std::optional< ripple::LedgerHeader > loadInitialLedger (model::LedgerData const &data) override
 Load the initial ledger.
 
- Public Member Functions inherited from etlng::LoaderInterface
- Public Member Functions inherited from etlng::InitialLoadObserverInterface

Member Function Documentation

◆ load()

void etlng::impl::Loader::load ( model::LedgerData const & data)
overridevirtual

Load ledger data.

Parameters
dataThe data to load

Implements etlng::LoaderInterface.

◆ loadInitialLedger()

std::optional< ripple::LedgerHeader > etlng::impl::Loader::loadInitialLedger ( model::LedgerData const & data)
overridevirtual

Load the initial ledger.

Parameters
dataThe data to load
Returns
Optional ledger header

Implements etlng::LoaderInterface.

◆ onInitialLoadGotMoreObjects()

void etlng::impl::Loader::onInitialLoadGotMoreObjects ( uint32_t seq,
std::vector< model::Object > const & data,
std::optional< std::string > lastKey )
overridevirtual

Callback for each incoming batch of objects during initial ledger load.

Parameters
seqThe sequence for this batch of objects
dataThe batch of objects
lastKeyThe last key of the previous batch if there was one

Implements etlng::InitialLoadObserverInterface.


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