Clio  develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
InitialLoadObserverInterface.hpp
1#pragma once
2
3#include "etl/Models.hpp"
4
5#include <xrpl/protocol/LedgerHeader.h>
6
7#include <cstdint>
8#include <optional>
9#include <string>
10#include <vector>
11
12namespace etl {
13
18 virtual ~InitialLoadObserverInterface() = default;
19
27 virtual void
29 uint32_t seq,
30 std::vector<model::Object> const& data,
31 std::optional<std::string> lastKey = std::nullopt
32 ) = 0;
33};
34
35} // namespace etl
This namespace implements the data access layer and related components.
Definition AmendmentCenter.cpp:56
The interface for observing the initial ledger load.
Definition InitialLoadObserverInterface.hpp:17
virtual void onInitialLoadGotMoreObjects(uint32_t seq, std::vector< model::Object > const &data, std::optional< std::string > lastKey=std::nullopt)=0
Callback for each incoming batch of objects during initial ledger load.